blob: 1dde096e1b9d98ef890dfe564b849fd5ac4aa678 [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:
Jonathan Hart87314cd2018-02-12 17:15:35 -08005# - vconsul (service)
Richard Jankowskid1232062017-07-17 14:10:23 -04006# - 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. Bainbridge737b74f2018-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
Jonathan Hart87314cd2018-02-12 17:15:35 -080029 - --consul=vconsul:8500
Richard Jankowskid1232062017-07-17 14:10:23 -040030 - --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. Bainbridge737b74f2018-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
Jonathan Hart87314cd2018-02-12 17:15:35 -080048 - --consul=vconsul:8500
Richard Jankowski60a08d72017-07-18 16:12:26 -040049 - --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