blob: e6cc5642e5d3d62110ca04f0d2a2e1a24bc271b6 [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:
- "8882:80"
- "2003:2003"
- "2004:2004"
- "8126:8126"
- "8125:8125/udp"
networks:
voltha-net:
external:
name: voltha_net