Zack Williams | 41513bf | 2018-07-07 20:08:35 -0700 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 14 | # |
Sergio Slobodrian | be82927 | 2017-07-17 14:45:45 -0400 | [diff] [blame] | 15 | # This Docker stackfile deploys an envoy proxy container. |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 16 | # |
| 17 | # The stackfile assumes that overlay network 'voltha_net' has already been |
| 18 | # created. To deploy the stack, issue the command: |
| 19 | # |
| 20 | # docker stack deploy -c docker-compose-envoy-swarm.yml envoy |
| 21 | # |
| 22 | |
| 23 | version: "3" |
| 24 | services: |
Sergio Slobodrian | be82927 | 2017-07-17 14:45:45 -0400 | [diff] [blame] | 25 | voltha: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 26 | image: "${REGISTRY}${REPOSITORY}voltha-envoy:${TAG:-latest}" |
David K. Bainbridge | 4e920b7 | 2017-10-12 07:49:14 -0700 | [diff] [blame] | 27 | logging: |
| 28 | driver: "json-file" |
| 29 | options: |
| 30 | max-size: "10m" |
| 31 | max-file: 3 |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 32 | deploy: |
| 33 | replicas: 1 |
| 34 | environment: |
| 35 | DOCKER_HOST_IP: "${DOCKER_HOST_IP}" |
| 36 | entrypoint: |
Sergio Slobodrian | be82927 | 2017-07-17 14:45:45 -0400 | [diff] [blame] | 37 | - /usr/local/bin/envoyd |
Sergio Slobodrian | 8dec8de | 2017-07-20 12:45:07 -0400 | [diff] [blame] | 38 | - -envoy-cfg-template |
| 39 | - "/envoy/voltha-grpc-proxy.template.json" |
| 40 | - -envoy-config |
| 41 | - "/envoy/voltha-grpc-proxy.json" |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 42 | - -consul-svc-nme |
| 43 | - "vconsul" |
| 44 | - -kv-svc-name |
| 45 | - "vconsul" |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 46 | networks: |
| 47 | - voltha-net |
| 48 | ports: |
Sergio Slobodrian | be82927 | 2017-07-17 14:45:45 -0400 | [diff] [blame] | 49 | - "50555:50555" |
Sergio Slobodrian | 6570c74 | 2017-08-07 23:11:33 -0400 | [diff] [blame] | 50 | - "8882:8882" |
| 51 | - "8443:8443" |
Sergio Slobodrian | ee417fa | 2017-08-11 09:34:50 -0400 | [diff] [blame] | 52 | - "8001:8001" |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 53 | volumes: |
Sergio Slobodrian | ee417fa | 2017-08-11 09:34:50 -0400 | [diff] [blame] | 54 | - /var/run/docker.sock:/tmp/docker.sock |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 55 | |
| 56 | networks: |
| 57 | voltha-net: |
| 58 | external: |
| 59 | name: voltha_net |
| 60 | |