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. |
Sergio Slobodrian | f39aaf8 | 2017-02-28 16:10:16 -0500 | [diff] [blame] | 14 | version: '2' |
| 15 | services: |
| 16 | # |
| 17 | # Dashboard daemon |
| 18 | # |
| 19 | dashd: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 20 | image: "${REGISTRY}${REPOSITORY}voltha-dashd:${TAG:-latest}" |
Sergio Slobodrian | f39aaf8 | 2017-02-28 16:10:16 -0500 | [diff] [blame] | 21 | 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 Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 30 | - vconsul |
Sergio Slobodrian | f39aaf8 | 2017-02-28 16:10:16 -0500 | [diff] [blame] | 31 | - kafka |
| 32 | - grafana |
| 33 | restart: unless-stopped |
Sergio Slobodrian | 9358bd4 | 2017-03-10 22:52:24 -0500 | [diff] [blame] | 34 | |
| 35 | # |
| 36 | # Single-node kafka service |
| 37 | # |
| 38 | kafka: |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 39 | image: "${REGISTRY}wurstmeister/kafka:${KAFKA_TAG:-latest}" |
Sergio Slobodrian | 9358bd4 | 2017-03-10 22:52:24 -0500 | [diff] [blame] | 40 | |
| 41 | # |
| 42 | # Single-node consul agent |
| 43 | # |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 44 | vconsul: |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 45 | image: "${REGISTRY}consul:${CONSUL_TAG:-0.9.2}" |
Sergio Slobodrian | 9358bd4 | 2017-03-10 22:52:24 -0500 | [diff] [blame] | 46 | |
| 47 | # |
| 48 | # Graphite-Grafana-statsd service instance |
| 49 | # (demo place-holder for external KPI system) |
| 50 | # |
| 51 | grafana: |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 52 | image: "${REGISTRY}kamon/grafana_graphite:${TAG:-latest}" |