From 2db430c3648aaf3085ec25cf01bcf3e600f5e674 Mon Sep 17 00:00:00 2001 From: David Beitey Date: Wed, 4 Dec 2019 02:44:00 +0000 Subject: [PATCH] Start Caddy when docker daemon starts / on boot The Caddy container has no restart policy, meaning that if the host/Docker daemon restarts (or Caddy errors/quits for some reason), Caddy will be left offline and thus Cabot becomes inaccessible, requiring a manual start or restart to get Caddy online. All the other containers (https://github.com/cabotapp/docker-cabot/blob/master/docker-compose.yml) have restart policies of `always`; this PR adds the same for Caddy, making it consistent with the rest of the application. --- docker-compose-caddy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose-caddy.yml b/docker-compose-caddy.yml index 05919be..5c26856 100644 --- a/docker-compose-caddy.yml +++ b/docker-compose-caddy.yml @@ -11,3 +11,4 @@ services: volumes: - ./.caddy:/root/.caddy - ./conf/Caddyfile:/etc/Caddyfile + restart: always