blob: f2026b0d09f8e86fc162bd4813ccd3c1b5cb3075 [file] [log] [blame]
ecaiyanlinux845bc002020-08-12 12:57:09 +02001# Copyright (C) 2020 Nordix Foundation. All rights reserved.
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.
14# ============LICENSE_END=================================================
15#
16version: '3.5'
17
18networks:
19 default:
20 driver: bridge
21 name: nonrtric-docker-net
22
23services:
24 policy-agent:
elinuxhenrik32157222020-12-03 15:56:17 +010025 image: nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-policy-agent:2.2.0
ecaiyanlinux845bc002020-08-12 12:57:09 +020026 container_name: policy-agent
27 networks:
28 default:
29 aliases:
30 - policy-agent-container
31 ports:
32 - 8081:8081
33 - 8433:8433
34 volumes:
35 - ./pms/application_configuration.json:/opt/app/policy-agent/data/application_configuration.json:ro
36 - ./pms/application-policyagent.yaml:/opt/app/policy-agent/config/application.yaml:ro
37 # For using own certs instead of the default ones (built into the container),
38 # place them in pms/ directory, update the application-policyagent.yaml file, and uncomment the following lines
39 # - ./pms/keystore-policyagent.jks:/opt/app/policy-agent/etc/cert/keystore.jks:ro
40 # - ./pms/truststore-policyagent.jks:/opt/app/policy-agent/etc/cert/truststore.jks:ro
41 # - ./pms/application-policyagent.yaml:/opt/app/policy-agent/config/application.yaml:ro
42
43 a1-sim-OSC:
ecaiyanlinux79b9c032020-12-02 09:19:12 +010044 image: nexus3.o-ran-sc.org:10004/o-ran-sc/a1-simulator:2.1.0
ecaiyanlinux845bc002020-08-12 12:57:09 +020045 container_name: a1-sim-OSC
46 networks:
47 - default
48 ports:
49 - 30001:8085
50 - 30002:8185
51 environment:
52 - A1_VERSION=OSC_2.1.0
53 - REMOTE_HOSTS_LOGGING=1
54 - ALLOW_HTTP=true
55
56 a1-sim-STD:
ecaiyanlinux79b9c032020-12-02 09:19:12 +010057 image: nexus3.o-ran-sc.org:10004/o-ran-sc/a1-simulator:2.1.0
ecaiyanlinux845bc002020-08-12 12:57:09 +020058 container_name: a1-sim-STD
59 networks:
60 - default
61 ports:
62 - 30003:8085
63 - 30004:8185
64 environment:
65 - A1_VERSION=STD_1.1.3
66 - REMOTE_HOSTS_LOGGING=1
67 - ALLOW_HTTP=true
68
69 policy-control-panel:
elinuxhenrik32157222020-12-03 15:56:17 +010070 image: nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-controlpanel:2.2.0
ecaiyanlinux845bc002020-08-12 12:57:09 +020071 container_name: policy-control-panel
72 networks:
73 - default
74 ports:
75 - 8080:8080
76 - 8082:8082
77
78 zookeeper:
79 image: nexus3.onap.org:10001/onap/dmaap/zookeeper:6.0.3
80 container_name: zookeeper
81 ports:
82 - "2181:2181"
83 environment:
84 ZOOKEEPER_REPLICAS: 1
85 ZOOKEEPER_TICK_TIME: 2000
86 ZOOKEEPER_SYNC_LIMIT: 5
87 ZOOKEEPER_INIT_LIMIT: 10
88 ZOOKEEPER_MAX_CLIENT_CNXNS: 200
89 ZOOKEEPER_AUTOPURGE_SNAP_RETAIN_COUNT: 3
90 ZOOKEEPER_AUTOPURGE_PURGE_INTERVAL: 24
91 ZOOKEEPER_CLIENT_PORT: 2181
92 KAFKA_OPTS: -Djava.security.auth.login.config=/etc/zookeeper/secrets/jaas/zk_server_jaas.conf -Dzookeeper.kerberos.removeHostFromPrincipal=true -Dzookeeper.kerberos.removeRealmFromPrincipal=true -Dzookeeper.authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider -Dzookeeper.requireClientAuthScheme=sasl
93 ZOOKEEPER_SERVER_ID: 1
94 volumes:
95 - ./zk/zk_server_jaas.conf:/etc/zookeeper/secrets/jaas/zk_server_jaas.conf
96 networks:
97 - default
98
99 kafka:
100 image: nexus3.onap.org:10001/onap/dmaap/kafka111:1.0.4
101 container_name: kafka
102 ports:
103 - "9092:9092"
104 environment:
105 enableCadi: 'false'
106 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
107 KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 40000
108 KAFKA_ZOOKEEPER_SESSION_TIMEOUT_MS: 40000
109 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT
110 KAFKA_ADVERTISED_LISTENERS: INTERNAL_PLAINTEXT://kafka:9092
111 KAFKA_LISTENERS: INTERNAL_PLAINTEXT://0.0.0.0:9092
112 KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_PLAINTEXT
113 KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
114 KAFKA_OPTS: -Djava.security.auth.login.config=/etc/kafka/secrets/jaas/zk_client_jaas.conf
115 KAFKA_ZOOKEEPER_SET_ACL: 'true'
116 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
117 # Reduced the number of partitions only to avoid the timeout error for the first subscribe call in slow environment
118 KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS: 1
119 volumes:
120 - ./kafka/zk_client_jaas.conf:/etc/kafka/secrets/jaas/zk_client_jaas.conf
121 networks:
122 - default
123 depends_on:
124 - zookeeper
125
126 dmaap:
127 image: nexus3.onap.org:10001/onap/dmaap/dmaap-mr:1.1.18
128 container_name: dmaap-mr
129 ports:
130 - "3904:3904"
131 - "3905:3905"
132 environment:
133 enableCadi: 'false'
134 volumes:
135 - ./mr/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
136 - ./mr/logback.xml:/appl/dmaapMR1/bundleconfig/etc/logback.xml
137 - ./mr/cadi.properties:/appl/dmaapMR1/etc/cadi.properties
138 networks:
139 - default
140 depends_on:
141 - zookeeper
142 - kafka