Add auto restart

This commit is contained in:
Leo Winter 2017-08-28 01:43:02 +02:00 committed by GitHub
parent 4b4436a766
commit 1647b230f0
1 changed files with 4 additions and 1 deletions

View File

@ -30,6 +30,7 @@ services:
- cadvisor - cadvisor
networks: networks:
- back-tier - back-tier
restart: always
deploy: deploy:
placement: placement:
constraints: constraints:
@ -55,6 +56,7 @@ services:
- ./alertmanager/:/etc/alertmanager/ - ./alertmanager/:/etc/alertmanager/
networks: networks:
- back-tier - back-tier
restart: always
command: command:
- '-config.file=/etc/alertmanager/config.yml' - '-config.file=/etc/alertmanager/config.yml'
- '-storage.path=/alertmanager' - '-storage.path=/alertmanager'
@ -73,6 +75,7 @@ services:
- 8080 - 8080
networks: networks:
- back-tier - back-tier
restart: always
deploy: deploy:
mode: global mode: global
@ -88,4 +91,4 @@ services:
- config.monitoring - config.monitoring
networks: networks:
- back-tier - back-tier
- front-tier - front-tier