Richard Jankowski | d123206 | 2017-07-17 14:10:23 -0400 | [diff] [blame] | 1 | # |
Richard Jankowski | 60a08d7 | 2017-07-18 16:12:26 -0400 | [diff] [blame] | 2 | # This stackfile deploys dashd and shovel services to a docker swarm. |
Richard Jankowski | d123206 | 2017-07-17 14:10:23 -0400 | [diff] [blame] | 3 | # |
Richard Jankowski | 60a08d7 | 2017-07-18 16:12:26 -0400 | [diff] [blame] | 4 | # Each of these services depends on: |
Richard Jankowski | d123206 | 2017-07-17 14:10:23 -0400 | [diff] [blame] | 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 |
Richard Jankowski | 60a08d7 | 2017-07-18 16:12:26 -0400 | [diff] [blame] | 30 | |
| 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 Jankowski | d123206 | 2017-07-17 14:10:23 -0400 | [diff] [blame] | 44 | networks: |
| 45 | voltha-net: |
| 46 | external: |
| 47 | name: voltha_net |
| 48 | |