blob: 19a7d004713bdd7f48ce5d5bf8ff0d5bb46db7bb [file] [log] [blame]
Richard Jankowskid1232062017-07-17 14:10:23 -04001#
2# This stackfile deploys dashd to a docker swarm.
3#
4# Dashd depends on:
5# - consul (service)
6# - kafka (service)
7# - grafana (service)
8# - voltha_net (overlay network)
9#
10# To deploy the stack, issue the command:
11#
12# docker stack deploy -c docker-compose-stats-swarm.yml stats
13#
14
15version: "3"
16services:
17 dashd:
18 image: cord/dashd
19 deploy:
20 replicas: 1
21 entrypoint:
22 - /dashd/dashd/main.py
23 - --kafka=kafka
24 - --consul=consul:8500
25 - --grafana_url=http://admin:admin@grafana:80/api
26 - --topic=voltha.kpis
27 - --docker_host=${DOCKER_HOST_IP}
28 networks:
29 - voltha-net
30
31networks:
32 voltha-net:
33 external:
34 name: voltha_net
35