Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 1 | # |
Sergio Slobodrian | be82927 | 2017-07-17 14:45:45 -0400 | [diff] [blame] | 2 | # This Docker stackfile deploys an envoy proxy container. |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 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: |
Sergio Slobodrian | be82927 | 2017-07-17 14:45:45 -0400 | [diff] [blame] | 12 | voltha: |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 13 | image: voltha/envoy:latest |
| 14 | deploy: |
| 15 | replicas: 1 |
| 16 | environment: |
| 17 | DOCKER_HOST_IP: "${DOCKER_HOST_IP}" |
| 18 | entrypoint: |
Sergio Slobodrian | be82927 | 2017-07-17 14:45:45 -0400 | [diff] [blame] | 19 | - /usr/local/bin/envoyd |
Sergio Slobodrian | 8dec8de | 2017-07-20 12:45:07 -0400 | [diff] [blame] | 20 | - -envoy-cfg-template |
| 21 | - "/envoy/voltha-grpc-proxy.template.json" |
| 22 | - -envoy-config |
| 23 | - "/envoy/voltha-grpc-proxy.json" |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 24 | networks: |
| 25 | - voltha-net |
| 26 | ports: |
Sergio Slobodrian | be82927 | 2017-07-17 14:45:45 -0400 | [diff] [blame] | 27 | - "50555:50555" |
Sergio Slobodrian | 6570c74 | 2017-08-07 23:11:33 -0400 | [diff] [blame] | 28 | - "8882:8882" |
| 29 | - "8443:8443" |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 30 | volumes: |
| 31 | - /cord/incubator/voltha/envoy:/etc/envoy |
| 32 | |
| 33 | networks: |
| 34 | voltha-net: |
| 35 | external: |
| 36 | name: voltha_net |
| 37 | |