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: |
David K. Bainbridge | 3d5b22d | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 18 | image: "${REGISTRY}${REPOSITORY}voltha-dashd:${TAG:-latest}" |
David K. Bainbridge | 4e920b7 | 2017-10-12 07:49:14 -0700 | [diff] [blame] | 19 | logging: |
| 20 | driver: "json-file" |
| 21 | options: |
| 22 | max-size: "10m" |
| 23 | max-file: 3 |
Richard Jankowski | d123206 | 2017-07-17 14:10:23 -0400 | [diff] [blame] | 24 | 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 Jankowski | 60a08d7 | 2017-07-18 16:12:26 -0400 | [diff] [blame] | 35 | |
| 36 | shovel: |
David K. Bainbridge | 3d5b22d | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 37 | image: "${REGISTRY}${REPOSITORY}voltha-shovel:${TAG:-latest}" |
David K. Bainbridge | 4e920b7 | 2017-10-12 07:49:14 -0700 | [diff] [blame] | 38 | logging: |
| 39 | driver: "json-file" |
| 40 | options: |
| 41 | max-size: "10m" |
| 42 | max-file: 3 |
Richard Jankowski | 60a08d7 | 2017-07-18 16:12:26 -0400 | [diff] [blame] | 43 | 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 Jankowski | d123206 | 2017-07-17 14:10:23 -0400 | [diff] [blame] | 54 | networks: |
| 55 | voltha-net: |
| 56 | external: |
| 57 | name: voltha_net |
| 58 | |