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 |
David K. Bainbridge | 4e920b7 | 2017-10-12 07:49:14 -0700 | [diff] [blame] | 14 | logging: |
| 15 | driver: "json-file" |
| 16 | options: |
| 17 | max-size: "10m" |
| 18 | max-file: 3 |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 19 | deploy: |
| 20 | replicas: 1 |
| 21 | environment: |
| 22 | DOCKER_HOST_IP: "${DOCKER_HOST_IP}" |
| 23 | entrypoint: |
Sergio Slobodrian | be82927 | 2017-07-17 14:45:45 -0400 | [diff] [blame] | 24 | - /usr/local/bin/envoyd |
Sergio Slobodrian | 8dec8de | 2017-07-20 12:45:07 -0400 | [diff] [blame] | 25 | - -envoy-cfg-template |
| 26 | - "/envoy/voltha-grpc-proxy.template.json" |
| 27 | - -envoy-config |
| 28 | - "/envoy/voltha-grpc-proxy.json" |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 29 | networks: |
| 30 | - voltha-net |
| 31 | ports: |
Sergio Slobodrian | be82927 | 2017-07-17 14:45:45 -0400 | [diff] [blame] | 32 | - "50555:50555" |
Sergio Slobodrian | 6570c74 | 2017-08-07 23:11:33 -0400 | [diff] [blame] | 33 | - "8882:8882" |
| 34 | - "8443:8443" |
Sergio Slobodrian | ee417fa | 2017-08-11 09:34:50 -0400 | [diff] [blame] | 35 | - "8001:8001" |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 36 | volumes: |
Sergio Slobodrian | ee417fa | 2017-08-11 09:34:50 -0400 | [diff] [blame] | 37 | - /var/run/docker.sock:/tmp/docker.sock |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 38 | |
| 39 | networks: |
| 40 | voltha-net: |
| 41 | external: |
| 42 | name: voltha_net |
| 43 | |