blob: b9e905dad0cca14a54ef11175e4e8881a222dfb3 [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
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"
Sergio Slobodriancab0a392017-07-13 08:42:10 -040029 networks:
30 - voltha-net
31 ports:
Sergio Slobodrianbe829272017-07-17 14:45:45 -040032 - "50555:50555"
Sergio Slobodrian6570c742017-08-07 23:11:33 -040033 - "8882:8882"
34 - "8443:8443"
Sergio Slobodrianee417fa2017-08-11 09:34:50 -040035 - "8001:8001"
Sergio Slobodriancab0a392017-07-13 08:42:10 -040036 volumes:
Sergio Slobodrianee417fa2017-08-11 09:34:50 -040037 - /var/run/docker.sock:/tmp/docker.sock
Sergio Slobodriancab0a392017-07-13 08:42:10 -040038
39networks:
40 voltha-net:
41 external:
42 name: voltha_net
43