blob: a78b52563cffd4030a372c374bc64eee2441d707 [file] [log] [blame]
Richard Jankowski29dd1982017-06-28 13:30:18 -04001#
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. Bainbridgebba65ff2018-01-19 09:26:09 -08007# docker stack deploy -c docker-compose-cli.yml cli
Richard Jankowski29dd1982017-06-28 13:30:18 -04008#
9
10version: "3"
11services:
12 cli:
David K. Bainbridge737b74f2018-01-22 12:57:52 -080013 image: "${REGISTRY}${REPOSITORY}voltha-cli:${TAG:-latest}"
David K. Bainbridge4e920b72017-10-12 07:49:14 -070014 logging:
15 driver: "json-file"
16 options:
17 max-size: "10m"
18 max-file: 3
Richard Jankowski29dd1982017-06-28 13:30:18 -040019 deploy:
20 replicas: 2
21 environment:
22 DOCKER_HOST_IP: "${DOCKER_HOST_IP}"
23 entrypoint:
24 - /cli/cli/setup.sh
Jonathan Hart87314cd2018-02-12 17:15:35 -080025 - -C vconsul:8500
Richard Jankowski29dd1982017-06-28 13:30:18 -040026 - -g voltha:50555
27 - -s voltha:18880
khenaidooccc42252017-07-06 23:00:49 -040028 - -G
Richard Jankowski29dd1982017-06-28 13:30:18 -040029 networks:
30 - voltha-net
31 ports:
32 - "5022:22"
33
34networks:
35 voltha-net:
36 external:
37 name: voltha_net
38