Skip to content

Instantly share code, notes, and snippets.

@tailtq
Created March 24, 2023 04:07
Show Gist options
  • Save tailtq/613206d61cefebac8ca0906c9d8ed16e to your computer and use it in GitHub Desktop.
Save tailtq/613206d61cefebac8ca0906c9d8ed16e to your computer and use it in GitHub Desktop.
Docker reestart-policy
version: '3.3'
services:
timescaledb:
image: timescale/timescaledb-ha:pg14-latest
ports:
- 5432:5432
environment:
- POSTGRES_PASSWORD=postgresql
volumes:
- ./timescaledb-data:/home/postgres/pgdata/data
shm_size: 1g
# this is the policy
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment