blob: f0da9806e11717113c14b717b0038d27c2930b60 [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:
sathishge07fcf42017-09-12 00:44:13 +053023 - "8883:80"
Richard Jankowski60a08d72017-07-18 16:12:26 -040024 - "2003:2003"
25 - "2004:2004"
26 - "8126:8126"
27 - "8125:8125/udp"
28
29networks:
30 voltha-net:
31 external:
32 name: voltha_net
33