Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 1 | # |
| 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 | |
| 10 | version: "3" |
| 11 | services: |
| 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 | |
| 28 | networks: |
| 29 | voltha-net: |
| 30 | external: |
| 31 | name: voltha_net |
| 32 | |