blob: 95d658042de200eb0f5bff690f8f7b79cb1f052e [file] [log] [blame]
Sergio Slobodriancab0a392017-07-13 08:42:10 -04001#
2# This Docker stackfile deploys an envoy proxy 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#
7# docker stack deploy -c docker-compose-envoy-swarm.yml envoy
8#
9
10version: "3"
11services:
12 envoy:
13 image: voltha/envoy:latest
14 deploy:
15 replicas: 1
16 environment:
17 DOCKER_HOST_IP: "${DOCKER_HOST_IP}"
18 entrypoint:
19 - /usr/local/bin/envoy
20 - -c /etc/envoy/front-proxy/voltha-grpc-proxy.json
21 networks:
22 - voltha-net
23 ports:
24 - "50556:50556"
25 volumes:
26 - /cord/incubator/voltha/envoy:/etc/envoy
27
28networks:
29 voltha-net:
30 external:
31 name: voltha_net
32