Zack Williams | 41513bf | 2018-07-07 20:08:35 -0700 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
Richard Jankowski | 29dd198 | 2017-06-28 13:30:18 -0400 | [diff] [blame] | 14 | # |
| 15 | # This Docker stackfile deploys a Voltha CLI container along with one backup. |
| 16 | # |
| 17 | # The stackfile assumes that overlay network 'voltha_net' has already been |
| 18 | # created. To deploy the stack, issue the command: |
| 19 | # |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 20 | # docker stack deploy -c docker-compose-cli.yml cli |
Richard Jankowski | 29dd198 | 2017-06-28 13:30:18 -0400 | [diff] [blame] | 21 | # |
| 22 | |
| 23 | version: "3" |
| 24 | services: |
| 25 | cli: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 26 | image: "${REGISTRY}${REPOSITORY}voltha-cli:${TAG:-latest}" |
David K. Bainbridge | 4e920b7 | 2017-10-12 07:49:14 -0700 | [diff] [blame] | 27 | logging: |
| 28 | driver: "json-file" |
| 29 | options: |
| 30 | max-size: "10m" |
| 31 | max-file: 3 |
Richard Jankowski | 29dd198 | 2017-06-28 13:30:18 -0400 | [diff] [blame] | 32 | deploy: |
| 33 | replicas: 2 |
| 34 | environment: |
| 35 | DOCKER_HOST_IP: "${DOCKER_HOST_IP}" |
| 36 | entrypoint: |
| 37 | - /cli/cli/setup.sh |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 38 | - -C vconsul:8500 |
Richard Jankowski | 29dd198 | 2017-06-28 13:30:18 -0400 | [diff] [blame] | 39 | - -g voltha:50555 |
| 40 | - -s voltha:18880 |
khenaidoo | ccc4225 | 2017-07-06 23:00:49 -0400 | [diff] [blame] | 41 | - -G |
Richard Jankowski | 29dd198 | 2017-06-28 13:30:18 -0400 | [diff] [blame] | 42 | networks: |
| 43 | - voltha-net |
| 44 | ports: |
| 45 | - "5022:22" |
| 46 | |
| 47 | networks: |
| 48 | voltha-net: |
| 49 | external: |
| 50 | name: voltha_net |
| 51 | |