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: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 13 | image: "${REGISTRY}${REPOSITORY}voltha-envoy:${TAG:-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" |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 29 | - -consul-svc-nme |
| 30 | - "vconsul" |
| 31 | - -kv-svc-name |
| 32 | - "vconsul" |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 33 | networks: |
| 34 | - voltha-net |
| 35 | ports: |
Sergio Slobodrian | be82927 | 2017-07-17 14:45:45 -0400 | [diff] [blame] | 36 | - "50555:50555" |
Sergio Slobodrian | 6570c74 | 2017-08-07 23:11:33 -0400 | [diff] [blame] | 37 | - "8882:8882" |
| 38 | - "8443:8443" |
Sergio Slobodrian | ee417fa | 2017-08-11 09:34:50 -0400 | [diff] [blame] | 39 | - "8001:8001" |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 40 | volumes: |
Sergio Slobodrian | ee417fa | 2017-08-11 09:34:50 -0400 | [diff] [blame] | 41 | - /var/run/docker.sock:/tmp/docker.sock |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 42 | |
| 43 | networks: |
| 44 | voltha-net: |
| 45 | external: |
| 46 | name: voltha_net |
| 47 | |