Created
March 24, 2023 04:07
-
-
Save tailtq/613206d61cefebac8ca0906c9d8ed16e to your computer and use it in GitHub Desktop.
Docker reestart-policy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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