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. |
khenaidoo | ccc4225 | 2017-07-06 23:00:49 -0400 | [diff] [blame] | 14 | version: "3" |
| 15 | services: |
Sergio Slobodrian | be82927 | 2017-07-17 14:45:45 -0400 | [diff] [blame] | 16 | vcore: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 17 | image: "${REGISTRY}${REPOSITORY}voltha-voltha:${TAG:-latest}" |
David K. Bainbridge | 4e920b7 | 2017-10-12 07:49:14 -0700 | [diff] [blame] | 18 | logging: |
| 19 | driver: "json-file" |
| 20 | options: |
| 21 | max-size: "10m" |
| 22 | max-file: 3 |
khenaidoo | ccc4225 | 2017-07-06 23:00:49 -0400 | [diff] [blame] | 23 | deploy: |
| 24 | replicas: 3 |
| 25 | entrypoint: |
| 26 | - voltha/voltha/main.py |
| 27 | - -v |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 28 | - --consul=vconsul:8500 |
khenaidoo | ccc4225 | 2017-07-06 23:00:49 -0400 | [diff] [blame] | 29 | - --kafka=kafka |
| 30 | - --rest-port=8880 |
Sergio Slobodrian | be82927 | 2017-07-17 14:45:45 -0400 | [diff] [blame] | 31 | - --grpc-port=50556 |
khenaidoo | ccc4225 | 2017-07-06 23:00:49 -0400 | [diff] [blame] | 32 | - --instance-id-is-container-name |
| 33 | - --interface=eth2 |
| 34 | - --backend=consul |
Sergio Slobodrian | 6570c74 | 2017-08-07 23:11:33 -0400 | [diff] [blame] | 35 | - --inter-core-subnet=172.29.19.0/24 |
| 36 | - --pon-subnet=172.29.19.0/24 |
khenaidoo | 26a8c01 | 2017-07-07 18:25:47 -0400 | [diff] [blame] | 37 | |
khenaidoo | ccc4225 | 2017-07-06 23:00:49 -0400 | [diff] [blame] | 38 | networks: |
| 39 | - net |
| 40 | ports: |
| 41 | - "8880:8880" |
| 42 | - "18880:18880" |
Sergio Slobodrian | be82927 | 2017-07-17 14:45:45 -0400 | [diff] [blame] | 43 | - "50556:50556" |
khenaidoo | ccc4225 | 2017-07-06 23:00:49 -0400 | [diff] [blame] | 44 | volumes: |
| 45 | - /var/run/docker.sock:/tmp/docker.sock |
| 46 | |
| 47 | networks: |
| 48 | net: |
khenaidoo | 26a8c01 | 2017-07-07 18:25:47 -0400 | [diff] [blame] | 49 | external: |
| 50 | name: voltha_net |
| 51 | |