blob: c3e7896dba3b95211aa2086193f0e9bdb635c2ee [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# 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 Slobodriancab0a392017-07-13 08:42:10 -040014#
Sergio Slobodrianbe829272017-07-17 14:45:45 -040015# This Docker stackfile deploys an envoy proxy container.
Sergio Slobodriancab0a392017-07-13 08:42:10 -040016#
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
23version: "3"
24services:
Sergio Slobodrianbe829272017-07-17 14:45:45 -040025 voltha:
David K. Bainbridge737b74f2018-01-22 12:57:52 -080026 image: "${REGISTRY}${REPOSITORY}voltha-envoy:${TAG:-latest}"
David K. Bainbridge4e920b72017-10-12 07:49:14 -070027 logging:
28 driver: "json-file"
29 options:
30 max-size: "10m"
31 max-file: 3
Sergio Slobodriancab0a392017-07-13 08:42:10 -040032 deploy:
33 replicas: 1
34 environment:
35 DOCKER_HOST_IP: "${DOCKER_HOST_IP}"
36 entrypoint:
Sergio Slobodrianbe829272017-07-17 14:45:45 -040037 - /usr/local/bin/envoyd
Sergio Slobodrian8dec8de2017-07-20 12:45:07 -040038 - -envoy-cfg-template
39 - "/envoy/voltha-grpc-proxy.template.json"
40 - -envoy-config
41 - "/envoy/voltha-grpc-proxy.json"
Jonathan Hart87314cd2018-02-12 17:15:35 -080042 - -consul-svc-nme
43 - "vconsul"
44 - -kv-svc-name
45 - "vconsul"
Sergio Slobodriancab0a392017-07-13 08:42:10 -040046 networks:
47 - voltha-net
48 ports:
Sergio Slobodrianbe829272017-07-17 14:45:45 -040049 - "50555:50555"
Sergio Slobodrian6570c742017-08-07 23:11:33 -040050 - "8882:8882"
51 - "8443:8443"
Sergio Slobodrianee417fa2017-08-11 09:34:50 -040052 - "8001:8001"
Sergio Slobodriancab0a392017-07-13 08:42:10 -040053 volumes:
Sergio Slobodrianee417fa2017-08-11 09:34:50 -040054 - /var/run/docker.sock:/tmp/docker.sock
Sergio Slobodriancab0a392017-07-13 08:42:10 -040055
56networks:
57 voltha-net:
58 external:
59 name: voltha_net
60