blob: 272030c42bd2e85e8964c0b423f8e7dd6dfeb7e4 [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# 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 Jankowski29dd1982017-06-28 13:30:18 -040014#
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. Bainbridgebba65ff2018-01-19 09:26:09 -080020# docker stack deploy -c docker-compose-cli.yml cli
Richard Jankowski29dd1982017-06-28 13:30:18 -040021#
22
23version: "3"
24services:
25 cli:
David K. Bainbridge737b74f2018-01-22 12:57:52 -080026 image: "${REGISTRY}${REPOSITORY}voltha-cli:${TAG:-latest}"
David K. Bainbridge4e920b72017-10-12 07:49:14 -070027 logging:
28 driver: "json-file"
29 options:
30 max-size: "10m"
31 max-file: 3
Richard Jankowski29dd1982017-06-28 13:30:18 -040032 deploy:
33 replicas: 2
34 environment:
35 DOCKER_HOST_IP: "${DOCKER_HOST_IP}"
36 entrypoint:
37 - /cli/cli/setup.sh
Jonathan Hart87314cd2018-02-12 17:15:35 -080038 - -C vconsul:8500
Richard Jankowski29dd1982017-06-28 13:30:18 -040039 - -g voltha:50555
40 - -s voltha:18880
khenaidooccc42252017-07-06 23:00:49 -040041 - -G
Richard Jankowski29dd1982017-06-28 13:30:18 -040042 networks:
43 - voltha-net
44 ports:
45 - "5022:22"
46
47networks:
48 voltha-net:
49 external:
50 name: voltha_net
51