This implementation shared a common local folder for whisper data
Last active
March 8, 2017 10:07
-
-
Save yesoreyeram/fc021b0bd3d0498f03b0cb26481f8156 to your computer and use it in GitHub Desktop.
Docker Compose file for clustered graphite and grafana implementation.
This file contains 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: | |
graphite-a: | |
image : "sitespeedio/graphite" | |
expose: | |
- "2003" | |
- "80" | |
environment: | |
- TCP_PORTS=80, 2003 | |
volumes : | |
- /whisper-prod:/opt/graphite/storage/whisper | |
graphite-b: | |
image : "sitespeedio/graphite" | |
expose: | |
- "2003" | |
- "80" | |
environment: | |
- TCP_PORTS=80, 2003 | |
volumes : | |
- /whisper-prod:/opt/graphite/storage/whisper | |
lb-graphite: | |
image: "dockercloud/haproxy" | |
depends_on: | |
- graphite-a | |
- graphite-b | |
environment: | |
- ADDITIONAL_SERVICES=monitoring:graphite-a,monitoring:graphite-b | |
- BALANCE=roundrobin | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
ports: | |
- 80:80 | |
- 2003:2003 | |
grafana: | |
image: "grafana/grafana" | |
ports: | |
- "3000:3000" | |
grafana-alert: | |
image: "grafana/grafana" | |
ports: | |
- "3001:3000" | |
grafana-dev: | |
image: "grafana/grafana" | |
ports: | |
- "3002:3000" | |
grafana-test: | |
image: "grafana/grafana" | |
ports: | |
- "3003:3003" | |
## Something equalvent to this | |
# docker run -d --name g1 -v /whisper:/opt/graphite/storage/whisper --expose 2003 --expose 80 -e TCP_PORTS="80, 2003" sitespeedio/graphite | |
# docker run -d --name g2 -v /whisper:/opt/graphite/storage/whisper --expose 2003 --expose 80 -e TCP_PORTS="80, 2003" sitespeedio/graphite | |
# docker run -d -p 80:80 -p 2003:2003 --link g1:g1 --link g2:g2 --name lb1 -e "BALANCE=roundrobin" dockercloud/haproxy | |
# docker run -d -p 3000:3000 --name grafana grafana/grafana | |
# docker run -d -p 3001:3000 --name grafana-alert grafana/grafana | |
# docker run -d -p 3002:3000 --name grafana-dev grafana/grafana | |
# docker run -d -p 3003:3000 --name grafana-test grafana/grafana |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment