Add restart policy to autostart the containers after boot
This commit is contained in:
parent
0c4f1f9dba
commit
511dacf54a
@ -1,5 +1,9 @@
|
|||||||
|
x-op-restart-policy: &restart_policy
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
services:
|
services:
|
||||||
shimatta-kenkyusho-web:
|
shimatta-kenkyusho-web:
|
||||||
|
<<: *restart_policy
|
||||||
build: .
|
build: .
|
||||||
volumes:
|
volumes:
|
||||||
- "${DJANGO_STATIC_VOL:-./run/static}:/var/static"
|
- "${DJANGO_STATIC_VOL:-./run/static}:/var/static"
|
||||||
@ -30,6 +34,7 @@ services:
|
|||||||
start_period: 30s
|
start_period: 30s
|
||||||
|
|
||||||
shimatta-kenkyusho-db:
|
shimatta-kenkyusho-db:
|
||||||
|
<<: *restart_policy
|
||||||
image: postgres:16.5-alpine
|
image: postgres:16.5-alpine
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: "${DJANGO_POSTGRESQL_PW:-p4ssw0rd}"
|
POSTGRES_PASSWORD: "${DJANGO_POSTGRESQL_PW:-p4ssw0rd}"
|
||||||
|
Loading…
Reference in New Issue
Block a user