blob: 6d4a673774c93f8e1132be70e92d6a56ddb202a8 [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:
David K. Bainbridge3d5b22d2018-01-22 12:57:52 -080018 image: "${REGISTRY}${REPOSITORY}voltha-dashd:${TAG:-latest}"
David K. Bainbridge4e920b72017-10-12 07:49:14 -070019 logging:
20 driver: "json-file"
21 options:
22 max-size: "10m"
23 max-file: 3
Richard Jankowskid1232062017-07-17 14:10:23 -040024 deploy:
25 replicas: 1
26 entrypoint:
27 - /dashd/dashd/main.py
28 - --kafka=kafka
29 - --consul=consul:8500
30 - --grafana_url=http://admin:admin@grafana:80/api
31 - --topic=voltha.kpis
32 - --docker_host=${DOCKER_HOST_IP}
33 networks:
34 - voltha-net
Richard Jankowski60a08d72017-07-18 16:12:26 -040035
36 shovel:
David K. Bainbridge3d5b22d2018-01-22 12:57:52 -080037 image: "${REGISTRY}${REPOSITORY}voltha-shovel:${TAG:-latest}"
David K. Bainbridge4e920b72017-10-12 07:49:14 -070038 logging:
39 driver: "json-file"
40 options:
41 max-size: "10m"
42 max-file: 3
Richard Jankowski60a08d72017-07-18 16:12:26 -040043 deploy:
44 replicas: 1
45 entrypoint:
46 - /shovel/shovel/main.py
47 - --kafka=kafka
48 - --consul=consul:8500
49 - --topic=voltha.kpis
50 - --host=grafana
51 networks:
52 - voltha-net
53
Richard Jankowskid1232062017-07-17 14:10:23 -040054networks:
55 voltha-net:
56 external:
57 name: voltha_net
58