blob: f0da9806e11717113c14b717b0038d27c2930b60 [file] [log] [blame]
#
# This stackfile deploys grafana to a docker swarm.
#
# Grafana depends on:
# - voltha_net (overlay network)
#
# To deploy the stack, issue the command:
#
# docker stack deploy -c docker-compose-grafana-swarm.yml grafana
#
version: "3"
services:
grafana:
image: kamon/grafana_graphite
deploy:
replicas: 1
environment:
GR_SERVER_ROOT_URL: "http://localhost:80/grafana/"
networks:
- voltha-net
ports:
- "8883:80"
- "2003:2003"
- "2004:2004"
- "8126:8126"
- "8125:8125/udp"
networks:
voltha-net:
external:
name: voltha_net