blob: 76ed069f12fb9f6ae876332aa990deed4ff08577 [file] [log] [blame]
Sergio Slobodriancab0a392017-07-13 08:42:10 -04001#
Sergio Slobodrianbe829272017-07-17 14:45:45 -04002# This Docker stackfile deploys an envoy proxy container.
Sergio Slobodriancab0a392017-07-13 08:42:10 -04003#
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-envoy-swarm.yml envoy
8#
9
10version: "3"
11services:
Sergio Slobodrianbe829272017-07-17 14:45:45 -040012 voltha:
David K. Bainbridge3d5b22d2018-01-22 12:57:52 -080013 image: "${REGISTRY}${REPOSITORY}voltha-envoy:${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
Sergio Slobodriancab0a392017-07-13 08:42:10 -040019 deploy:
20 replicas: 1
21 environment:
22 DOCKER_HOST_IP: "${DOCKER_HOST_IP}"
23 entrypoint:
Sergio Slobodrianbe829272017-07-17 14:45:45 -040024 - /usr/local/bin/envoyd
Sergio Slobodrian8dec8de2017-07-20 12:45:07 -040025 - -envoy-cfg-template
26 - "/envoy/voltha-grpc-proxy.template.json"
27 - -envoy-config
28 - "/envoy/voltha-grpc-proxy.json"
Jonathan Hartd67db4a2018-02-12 17:15:35 -080029 - -consul-svc-nme
30 - "vconsul"
31 - -kv-svc-name
32 - "vconsul"
Sergio Slobodriancab0a392017-07-13 08:42:10 -040033 networks:
34 - voltha-net
35 ports:
Sergio Slobodrianbe829272017-07-17 14:45:45 -040036 - "50555:50555"
Sergio Slobodrian6570c742017-08-07 23:11:33 -040037 - "8882:8882"
38 - "8443:8443"
Sergio Slobodrianee417fa2017-08-11 09:34:50 -040039 - "8001:8001"
Sergio Slobodriancab0a392017-07-13 08:42:10 -040040 volumes:
Sergio Slobodrianee417fa2017-08-11 09:34:50 -040041 - /var/run/docker.sock:/tmp/docker.sock
Sergio Slobodriancab0a392017-07-13 08:42:10 -040042
43networks:
44 voltha-net:
45 external:
46 name: voltha_net
47