blob: 86645a8e900a8ae51f63a463edb78b12bbb512ce [file] [log] [blame]
Richard Jankowskid1232062017-07-17 14:10:23 -04001#
Richard Jankowski60a08d72017-07-18 16:12:26 -04002# This stackfile deploys dashd and shovel services to a docker swarm.
Richard Jankowskid1232062017-07-17 14:10:23 -04003#
Richard Jankowski60a08d72017-07-18 16:12:26 -04004# Each of these services depends on:
Richard Jankowskid1232062017-07-17 14:10:23 -04005# - 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
Richard Jankowski60a08d72017-07-18 16:12:26 -040030
31 shovel:
32 image: cord/shovel
33 deploy:
34 replicas: 1
35 entrypoint:
36 - /shovel/shovel/main.py
37 - --kafka=kafka
38 - --consul=consul:8500
39 - --topic=voltha.kpis
40 - --host=grafana
41 networks:
42 - voltha-net
43
Richard Jankowskid1232062017-07-17 14:10:23 -040044networks:
45 voltha-net:
46 external:
47 name: voltha_net
48