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 | # |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 7 | # docker stack deploy -c docker-compose-cli.yml cli |
Richard Jankowski | 29dd198 | 2017-06-28 13:30:18 -0400 | [diff] [blame] | 8 | # |
| 9 | |
| 10 | version: "3" |
| 11 | services: |
| 12 | cli: |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 13 | image: "${REGISTRY}voltha/cli:${TAG:-latest}" |
David K. Bainbridge | 4e920b7 | 2017-10-12 07:49:14 -0700 | [diff] [blame] | 14 | logging: |
| 15 | driver: "json-file" |
| 16 | options: |
| 17 | max-size: "10m" |
| 18 | max-file: 3 |
Richard Jankowski | 29dd198 | 2017-06-28 13:30:18 -0400 | [diff] [blame] | 19 | deploy: |
| 20 | replicas: 2 |
| 21 | environment: |
| 22 | DOCKER_HOST_IP: "${DOCKER_HOST_IP}" |
| 23 | entrypoint: |
| 24 | - /cli/cli/setup.sh |
| 25 | - -C consul:8500 |
| 26 | - -g voltha:50555 |
| 27 | - -s voltha:18880 |
khenaidoo | ccc4225 | 2017-07-06 23:00:49 -0400 | [diff] [blame] | 28 | - -G |
Richard Jankowski | 29dd198 | 2017-06-28 13:30:18 -0400 | [diff] [blame] | 29 | networks: |
| 30 | - voltha-net |
| 31 | ports: |
| 32 | - "5022:22" |
| 33 | |
| 34 | networks: |
| 35 | voltha-net: |
| 36 | external: |
| 37 | name: voltha_net |
| 38 | |