blob: 0ff00de03a5d3add9b1c38692d5ef5d9c1e02aed [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
David K. Bainbridge4e920b72017-10-12 07:49:14 -070016 logging:
17 driver: "json-file"
18 options:
19 max-size: "10m"
20 max-file: 3
Richard Jankowski60a08d72017-07-18 16:12:26 -040021 deploy:
22 replicas: 1
23 environment:
24 GR_SERVER_ROOT_URL: "http://localhost:80/grafana/"
25 networks:
26 - voltha-net
27 ports:
sathishge07fcf42017-09-12 00:44:13 +053028 - "8883:80"
Richard Jankowski60a08d72017-07-18 16:12:26 -040029 - "2003:2003"
30 - "2004:2004"
31 - "8126:8126"
32 - "8125:8125/udp"
33
34networks:
35 voltha-net:
36 external:
37 name: voltha_net
38