| # Copyright 2017-present Open Networking Foundation |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| # |
| # This Docker stackfile deploys an envoy proxy container. |
| # |
| # The stackfile assumes that overlay network 'voltha_net' has already been |
| # created. To deploy the stack, issue the command: |
| # |
| # docker stack deploy -c docker-compose-envoy-swarm.yml envoy |
| # |
| |
| version: "3" |
| services: |
| voltha: |
| image: "${REGISTRY}${REPOSITORY}voltha-envoy:${TAG:-latest}" |
| logging: |
| driver: "json-file" |
| options: |
| max-size: "10m" |
| max-file: 3 |
| deploy: |
| replicas: 1 |
| environment: |
| DOCKER_HOST_IP: "${DOCKER_HOST_IP}" |
| entrypoint: |
| - /usr/local/bin/envoyd |
| - -envoy-cfg-template |
| - "/envoy/voltha-grpc-proxy.template.json" |
| - -envoy-config |
| - "/envoy/voltha-grpc-proxy.json" |
| - -consul-svc-nme |
| - "vconsul" |
| - -kv-svc-name |
| - "vconsul" |
| networks: |
| - voltha-net |
| ports: |
| - "50555:50555" |
| - "8882:8882" |
| - "8443:8443" |
| - "8001:8001" |
| volumes: |
| - /var/run/docker.sock:/tmp/docker.sock |
| |
| networks: |
| voltha-net: |
| external: |
| name: voltha_net |
| |