Richard Jankowski | 29dd198 | 2017-06-28 13:30:18 -0400 | [diff] [blame] | 1 | # |
| 2 | # This Docker stackfile deploys a Voltha CLI container along with one backup. |
| 3 | # |
| 4 | # The stackfile assumes that overlay network 'voltha_net' has already been |
| 5 | # created. To deploy the stack, issue the command: |
| 6 | # |
| 7 | # docker stack deploy -c docker-compose-vcli.yml cli |
| 8 | # |
| 9 | |
| 10 | version: "3" |
| 11 | services: |
| 12 | cli: |
| 13 | image: cord/vcli:latest |
| 14 | deploy: |
| 15 | replicas: 2 |
| 16 | environment: |
| 17 | DOCKER_HOST_IP: "${DOCKER_HOST_IP}" |
| 18 | entrypoint: |
| 19 | - /cli/cli/setup.sh |
| 20 | - -C consul:8500 |
| 21 | - -g voltha:50555 |
| 22 | - -s voltha:18880 |
khenaidoo | ccc4225 | 2017-07-06 23:00:49 -0400 | [diff] [blame] | 23 | - -G |
Richard Jankowski | 29dd198 | 2017-06-28 13:30:18 -0400 | [diff] [blame] | 24 | networks: |
| 25 | - voltha-net |
| 26 | ports: |
| 27 | - "5022:22" |
| 28 | |
| 29 | networks: |
| 30 | voltha-net: |
| 31 | external: |
| 32 | name: voltha_net |
| 33 | |