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