docker compose: apply restart policy to all services
This commit is contained in:
parent
edbe5807c2
commit
52056aa1d0
1 changed files with 2 additions and 0 deletions
|
@ -79,6 +79,7 @@ services:
|
||||||
test: entrypoint worker_healthcheck
|
test: entrypoint worker_healthcheck
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
|
<<: *restart-policy
|
||||||
image: postgres:16
|
image: postgres:16
|
||||||
healthcheck:
|
healthcheck:
|
||||||
<<: *healthcheck_defaults
|
<<: *healthcheck_defaults
|
||||||
|
@ -90,6 +91,7 @@ services:
|
||||||
- "c3nav-postgres:/var/lib/postgresql/data"
|
- "c3nav-postgres:/var/lib/postgresql/data"
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
|
<<: *restart-policy
|
||||||
image: redis:7.2
|
image: redis:7.2
|
||||||
command: redis-server --save 60 1 --loglevel warning
|
command: redis-server --save 60 1 --loglevel warning
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue