Zack Williams | 41513bf | 2018-07-07 20:08:35 -0700 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
Richard Jankowski | 60a08d7 | 2017-07-18 16:12:26 -0400 | [diff] [blame] | 14 | # |
| 15 | # This stackfile deploys grafana to a docker swarm. |
| 16 | # |
| 17 | # Grafana depends on: |
| 18 | # - voltha_net (overlay network) |
| 19 | # |
| 20 | # To deploy the stack, issue the command: |
| 21 | # |
| 22 | # docker stack deploy -c docker-compose-grafana-swarm.yml grafana |
| 23 | # |
| 24 | |
| 25 | version: "3" |
| 26 | services: |
| 27 | grafana: |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 28 | image: "${REGISTRY}kamon/grafana_graphite:${TAG:-latest}" |
David K. Bainbridge | 4e920b7 | 2017-10-12 07:49:14 -0700 | [diff] [blame] | 29 | logging: |
| 30 | driver: "json-file" |
| 31 | options: |
| 32 | max-size: "10m" |
| 33 | max-file: 3 |
Richard Jankowski | 60a08d7 | 2017-07-18 16:12:26 -0400 | [diff] [blame] | 34 | deploy: |
| 35 | replicas: 1 |
| 36 | environment: |
| 37 | GR_SERVER_ROOT_URL: "http://localhost:80/grafana/" |
| 38 | networks: |
| 39 | - voltha-net |
| 40 | ports: |
sathishg | e07fcf4 | 2017-09-12 00:44:13 +0530 | [diff] [blame] | 41 | - "8883:80" |
Richard Jankowski | 60a08d7 | 2017-07-18 16:12:26 -0400 | [diff] [blame] | 42 | - "2003:2003" |
| 43 | - "2004:2004" |
| 44 | - "8126:8126" |
| 45 | - "8125:8125/udp" |
| 46 | |
| 47 | networks: |
| 48 | voltha-net: |
| 49 | external: |
| 50 | name: voltha_net |
| 51 | |