mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-10-30 18:07:46 +00:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									bd83306390
								
							
						
					
					
						commit
						6e19eeba27
					
				| @ -4,7 +4,7 @@ services: | |||||||
|   web: |   web: | ||||||
|     image: ${docker_repo:-zokradonh}/kopano_web |     image: ${docker_repo:-zokradonh}/kopano_web | ||||||
|     container_name: web |     container_name: web | ||||||
|     restart: always |     restart: unless-stopped | ||||||
|     ports: |     ports: | ||||||
|       - "2015:2015" |       - "2015:2015" | ||||||
|       - "${HTTP:-80}:80" |       - "${HTTP:-80}:80" | ||||||
| @ -102,7 +102,7 @@ services: | |||||||
| 
 | 
 | ||||||
|   mail: |   mail: | ||||||
|     image: tvial/docker-mailserver:release-v6.1.0 |     image: tvial/docker-mailserver:release-v6.1.0 | ||||||
|     restart: always |     restart: unless-stopped | ||||||
|     hostname: mail |     hostname: mail | ||||||
|     domainname: ${LDAP_DOMAIN} |     domainname: ${LDAP_DOMAIN} | ||||||
|     container_name: mail |     container_name: mail | ||||||
| @ -161,7 +161,7 @@ services: | |||||||
| 
 | 
 | ||||||
|   db: |   db: | ||||||
|     image: mariadb:10.3.10-bionic |     image: mariadb:10.3.10-bionic | ||||||
|     restart: always |     restart: unless-stopped | ||||||
|     container_name: kopano_db |     container_name: kopano_db | ||||||
|     volumes: |     volumes: | ||||||
|       - mysql/:/var/lib/mysql |       - mysql/:/var/lib/mysql | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user