Skip to content

Instantly share code, notes, and snippets.

@kelein
Created January 30, 2018 07:23
Show Gist options
  • Save kelein/177ffa058141cd627218532df6dabed9 to your computer and use it in GitHub Desktop.
Save kelein/177ffa058141cd627218532df6dabed9 to your computer and use it in GitHub Desktop.
Alert Manager Peer Cluster docker compose file.
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