blob: a109af9ed2fd5f48008fc9f1ad30e6b7c26e21ff [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:
Sergio Slobodriancab0a392017-07-13 08:42:10 -040013 image: voltha/envoy:latest
14 deploy:
15 replicas: 1
16 environment:
17 DOCKER_HOST_IP: "${DOCKER_HOST_IP}"
18 entrypoint:
Sergio Slobodrianbe829272017-07-17 14:45:45 -040019 - /usr/local/bin/envoyd
20 - -t /envoy/voltha-grpc-proxy.template.json
21 - -c /envoy/voltha-grpc-proxy.json
Sergio Slobodriancab0a392017-07-13 08:42:10 -040022 networks:
23 - voltha-net
24 ports:
Sergio Slobodrianbe829272017-07-17 14:45:45 -040025 - "50555:50555"
Sergio Slobodriancab0a392017-07-13 08:42:10 -040026 volumes:
27 - /cord/incubator/voltha/envoy:/etc/envoy
28
29networks:
30 voltha-net:
31 external:
32 name: voltha_net
33