blob: e6ee011c5bcd33ddf1bb9960c46cb3b1f04fd96e [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.
Sergio Slobodrianf39aaf82017-02-28 16:10:16 -050014version: '2'
15services:
16 #
17 # Dashboard daemon
18 #
19 dashd:
David K. Bainbridge737b74f2018-01-22 12:57:52 -080020 image: "${REGISTRY}${REPOSITORY}voltha-dashd:${TAG:-latest}"
Sergio Slobodrianf39aaf82017-02-28 16:10:16 -050021 command: [
22 "/dashd/dashd/main.py",
23 "--kafka=@kafka",
24 "--consul=${DOCKER_HOST_IP}:8500",
25 "--grafana_url=http://admin:admin@${DOCKER_HOST_IP}:8882/api",
26 "--topic=voltha.kpis",
27 "--docker_host=${DOCKER_HOST_IP}"
28 ]
29 depends_on:
Jonathan Hart87314cd2018-02-12 17:15:35 -080030 - vconsul
Sergio Slobodrianf39aaf82017-02-28 16:10:16 -050031 - kafka
32 - grafana
33 restart: unless-stopped
Sergio Slobodrian9358bd42017-03-10 22:52:24 -050034
35 #
36 # Single-node kafka service
37 #
38 kafka:
David K. Bainbridgebba65ff2018-01-19 09:26:09 -080039 image: "${REGISTRY}wurstmeister/kafka:${KAFKA_TAG:-latest}"
Sergio Slobodrian9358bd42017-03-10 22:52:24 -050040
41 #
42 # Single-node consul agent
43 #
Jonathan Hart87314cd2018-02-12 17:15:35 -080044 vconsul:
David K. Bainbridgebba65ff2018-01-19 09:26:09 -080045 image: "${REGISTRY}consul:${CONSUL_TAG:-0.9.2}"
Sergio Slobodrian9358bd42017-03-10 22:52:24 -050046
47 #
48 # Graphite-Grafana-statsd service instance
49 # (demo place-holder for external KPI system)
50 #
51 grafana:
David K. Bainbridgebba65ff2018-01-19 09:26:09 -080052 image: "${REGISTRY}kamon/grafana_graphite:${TAG:-latest}"