Richard Jankowski | 60a08d7 | 2017-07-18 16:12:26 -0400 | [diff] [blame] | 1 | # |
| 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 | |
| 12 | version: "3" |
| 13 | services: |
| 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 | |
| 29 | networks: |
| 30 | voltha-net: |
| 31 | external: |
| 32 | name: voltha_net |
| 33 | |