blob: a54b6104f4c3318e60aaf6ea0dd423f81d2d0f99 [file] [log] [blame]
Richard Jankowski46464e92019-03-05 11:53:55 -05001---
2# Copyright 2019 the original author or authors.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16version: '2'
17services:
18 #
19 # OFAgent server instance
20 #
21 ofagent:
22 image: "${REGISTRY}${REPOSITORY}voltha-ofagent${TAG}"
23 logging:
24 driver: "json-file"
25 options:
26 max-size: "10m"
27 max-file: "3"
28 command: [
29 "/ofagent/ofagent/main.py",
30 "-v",
31 "--consul=${DOCKER_HOST_IP}:8500",
32 "--controller=${DOCKER_HOST_IP}:6653",
33 "--grpc-endpoint=${DOCKER_HOST_IP}:50057",
34# "--grpc-timeout=15",
35# "--core-binding-key=non_default_voltha_backend_name",
36 "--instance-id-is-container-name",
Richard Jankowski46464e92019-03-05 11:53:55 -050037 "--key-file=/ofagent/pki/voltha.key",
38 "--cert-file=/ofagent/pki/voltha.crt",
39 "-v"
40 ]
41 volumes:
42 - "/var/run/docker.sock:/tmp/docker.sock"
43 restart: unless-stopped