blob: 5c14cfaf7c16d1805d776692ec7852f866d341a4 [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
Sergio Slobodrian8dec8de2017-07-20 12:45:07 -040020 - -envoy-cfg-template
21 - "/envoy/voltha-grpc-proxy.template.json"
22 - -envoy-config
23 - "/envoy/voltha-grpc-proxy.json"
Sergio Slobodriancab0a392017-07-13 08:42:10 -040024 networks:
25 - voltha-net
26 ports:
Sergio Slobodrianbe829272017-07-17 14:45:45 -040027 - "50555:50555"
Sergio Slobodrian6570c742017-08-07 23:11:33 -040028 - "8882:8882"
29 - "8443:8443"
Sergio Slobodrianee417fa2017-08-11 09:34:50 -040030 - "8001:8001"
Sergio Slobodriancab0a392017-07-13 08:42:10 -040031 volumes:
Sergio Slobodrianee417fa2017-08-11 09:34:50 -040032 - /var/run/docker.sock:/tmp/docker.sock
Sergio Slobodriancab0a392017-07-13 08:42:10 -040033
34networks:
35 voltha-net:
36 external:
37 name: voltha_net
38