Skip to content

Commit 141cc75

Browse files
authored
Ensure compose setup survives a systemctl restart docker. (#960)
Signed-off-by: Kurt Garloff <[email protected]>
1 parent 86ed153 commit 141cc75

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compliance-monitor/docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ services:
2020
volumes:
2121
- /var/run/docker.sock:/var/run/docker.sock
2222
- ./acme:/acme
23+
restart: always
24+
2325
web:
2426
build: .
2527
ports:
@@ -45,6 +47,8 @@ services:
4547
- traefik.http.routers.websecure.tls.certresolver=myresolver
4648
secrets:
4749
- db_password
50+
restart: always
51+
4852
postgres:
4953
image: postgres
5054
volumes:
@@ -58,6 +62,7 @@ services:
5862
labels:
5963
# do not publish this service publicly
6064
- "traefik.http.routers.postgres.entrypoints=traefik"
65+
restart: always
6166

6267
secrets:
6368
db_password:

0 commit comments

Comments
 (0)