Changed restart policy of postgres to always

This commit is contained in:
Kevin Veen-Birkenbach 2023-12-28 21:30:33 +01:00
parent 15e142ddc4
commit b5d0ae8800

View File

@ -5,7 +5,7 @@
- POSTGRES_PASSWORD={{database_password}} - POSTGRES_PASSWORD={{database_password}}
- POSTGRES_USER={{database_username}} - POSTGRES_USER={{database_username}}
- POSTGRES_DB={{database_databasename}} - POSTGRES_DB={{database_databasename}}
restart: unless-stopped restart: always
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U {{database_databasename}}"] test: ["CMD-SHELL", "pg_isready -U {{database_databasename}}"]
interval: 10s interval: 10s