blob: e6cc5642e5d3d62110ca04f0d2a2e1a24bc271b6 [file] [log] [blame]
Richard Jankowski60a08d72017-07-18 16:12:26 -04001#
2# This stackfile deploys grafana to a docker swarm.
3#
4# Grafana depends on:
5# - voltha_net (overlay network)
6#
7# To deploy the stack, issue the command:
8#
9# docker stack deploy -c docker-compose-grafana-swarm.yml grafana
10#
11
12version: "3"
13services:
14 grafana:
15 image: kamon/grafana_graphite
16 deploy:
17 replicas: 1
18 environment:
19 GR_SERVER_ROOT_URL: "http://localhost:80/grafana/"
20 networks:
21 - voltha-net
22 ports:
23 - "8882:80"
24 - "2003:2003"
25 - "2004:2004"
26 - "8126:8126"
27 - "8125:8125/udp"
28
29networks:
30 voltha-net:
31 external:
32 name: voltha_net
33