Richard Jankowski | d123206 | 2017-07-17 14:10:23 -0400 | [diff] [blame] | 1 | # |
| 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 | |
| 15 | version: "3" |
| 16 | services: |
| 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 | |
| 31 | networks: |
| 32 | voltha-net: |
| 33 | external: |
| 34 | name: voltha_net |
| 35 | |