blob: aa1937770fb59d215944812c6bac1d42f5653590 [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# 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 Jankowski60a08d72017-07-18 16:12:26 -040014#
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
25version: "3"
26services:
27 grafana:
David K. Bainbridgebba65ff2018-01-19 09:26:09 -080028 image: "${REGISTRY}kamon/grafana_graphite:${TAG:-latest}"
David K. Bainbridge4e920b72017-10-12 07:49:14 -070029 logging:
30 driver: "json-file"
31 options:
32 max-size: "10m"
33 max-file: 3
Richard Jankowski60a08d72017-07-18 16:12:26 -040034 deploy:
35 replicas: 1
36 environment:
37 GR_SERVER_ROOT_URL: "http://localhost:80/grafana/"
38 networks:
39 - voltha-net
40 ports:
sathishge07fcf42017-09-12 00:44:13 +053041 - "8883:80"
Richard Jankowski60a08d72017-07-18 16:12:26 -040042 - "2003:2003"
43 - "2004:2004"
44 - "8126:8126"
45 - "8125:8125/udp"
46
47networks:
48 voltha-net:
49 external:
50 name: voltha_net
51