Created
January 30, 2018 07:23
-
-
Save kelein/177ffa058141cd627218532df6dabed9 to your computer and use it in GitHub Desktop.
Alert Manager Peer Cluster docker compose file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
alertmanager_peer1: | |
image: prom/alertmanager:latest | |
ports: | |
- '9193:9093' | |
volumes: | |
- /etc/timezone:/etc/timezone | |
- /etc/localtime:/etc/localtime | |
- ./simple.yml:/etc/alertmanager/simple.yml | |
- ./data:/alert/data | |
command: [ | |
'--config.file=/etc/alertmanager/simple.yml', | |
'--mesh.peer=alertmanager_peer2:6783', | |
'--storage.path=/alert/data' | |
] | |
hostname: 'alertmanager_peer1' | |
alertmanager_peer2: | |
image: prom/alertmanager:latest | |
ports: | |
- '9293:9093' | |
volumes: | |
- /etc/timezone:/etc/timezone | |
- /etc/localtime:/etc/localtime | |
- ./simple.yml:/etc/alertmanager/simple.yml | |
- ./data:/alert/data | |
command: [ | |
'--config.file=/etc/alertmanager/simple.yml', | |
'--mesh.peer=alertmanager_peer1:6783', | |
'--storage.path=/alert/data' | |
] | |
hostname: 'alertmanager_peer2' | |
links: | |
- alertmanager_peer1 | |
alertmanager_peer3: | |
image: prom/alertmanager:latest | |
ports: | |
- '9393:9093' | |
volumes: | |
- /etc/timezone:/etc/timezone | |
- /etc/localtime:/etc/localtime | |
- ./simple.yml:/etc/alertmanager/simple.yml | |
- ./data:/alert/data | |
command: [ | |
'--config.file=/etc/alertmanager/simple.yml', | |
'--mesh.peer=alertmanager_peer1:6783', | |
'--storage.path=/alert/data' | |
] | |
hostname: 'alertmanager_peer3' | |
links: | |
- alertmanager_peer1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment