Add auto restart
This commit is contained in:
parent
4b4436a766
commit
1647b230f0
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue