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 |
David K. Bainbridge | e45c194 | 2017-10-12 07:49:14 -0700 | [diff] [blame] | 16 | logging: |
| 17 | driver: "json-file" |
| 18 | options: |
| 19 | max-size: "10m" |
| 20 | max-file: 3 |
Richard Jankowski | 60a08d7 | 2017-07-18 16:12:26 -0400 | [diff] [blame] | 21 | deploy: |
| 22 | replicas: 1 |
| 23 | environment: |
| 24 | GR_SERVER_ROOT_URL: "http://localhost:80/grafana/" |
| 25 | networks: |
| 26 | - voltha-net |
| 27 | ports: |
sathishg | e07fcf4 | 2017-09-12 00:44:13 +0530 | [diff] [blame] | 28 | - "8883:80" |
Richard Jankowski | 60a08d7 | 2017-07-18 16:12:26 -0400 | [diff] [blame] | 29 | - "2003:2003" |
| 30 | - "2004:2004" |
| 31 | - "8126:8126" |
| 32 | - "8125:8125/udp" |
| 33 | |
| 34 | networks: |
| 35 | voltha-net: |
| 36 | external: |
| 37 | name: voltha_net |
| 38 | |