Restart caddy service on-failure

This commit is contained in:
Steffen 2021-03-29 11:54:10 +02:00 committed by Steffen Lange
parent f2736e1e19
commit 83f465995f
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ services:
caddy: caddy:
container_name: caddy container_name: caddy
image: caddy:2-alpine image: caddy:2-alpine
restart: on-failure
network_mode: host network_mode: host
volumes: volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro - ./Caddyfile:/etc/caddy/Caddyfile:ro