From 6e19eeba27af739f187f41c4a90994d599d938ea Mon Sep 17 00:00:00 2001 From: cguentherTUChemnitz Date: Mon, 11 Mar 2019 12:43:45 +0100 Subject: [PATCH] switch restart always to unless-stopped I try to integrate the backup mechanisms of https://github.com/blacklabelops/volumerize, handling named volumes and automatic service stop and restart for consistent backups. Nevertheless this needs a clean stop of a service, which is only able to be achieved, if the docker restarts the containers only if they are not explicitly stopped. --- docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 919be0c..79ddcbb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: web: image: ${docker_repo:-zokradonh}/kopano_web container_name: web - restart: always + restart: unless-stopped ports: - "2015:2015" - "${HTTP:-80}:80" @@ -102,7 +102,7 @@ services: mail: image: tvial/docker-mailserver:release-v6.1.0 - restart: always + restart: unless-stopped hostname: mail domainname: ${LDAP_DOMAIN} container_name: mail @@ -161,7 +161,7 @@ services: db: image: mariadb:10.3.10-bionic - restart: always + restart: unless-stopped container_name: kopano_db volumes: - mysql/:/var/lib/mysql