blob: 8f51dfdc72649f47e58ed931ebf659bd89096f44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
version: '3.3'
services:
zookeeper:
image: nexus3.onap.org:10001/onap/dmaap/zookeeper:6.1.0
container_name: dmaap-zookeeper
ports:
- "2181:2181"
environment:
ZOOKEEPER_REPLICAS: 1
ZOOKEEPER_TICK_TIME: 2000
ZOOKEEPER_SYNC_LIMIT: 5
ZOOKEEPER_INIT_LIMIT: 10
ZOOKEEPER_MAX_CLIENT_CNXNS: 200
ZOOKEEPER_AUTOPURGE_SNAP_RETAIN_COUNT: 3
ZOOKEEPER_AUTOPURGE_PURGE_INTERVAL: 24
ZOOKEEPER_CLIENT_PORT: 2181
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 -Dzookeeper.4lw.commands.whitelist=*
ZOOKEEPER_SERVER_ID: 1
volumes:
- ./assets/zk/zk_server_jaas.conf:/etc/zookeeper/secrets/jaas/zk_server_jaas.conf
networks:
net:
aliases:
- zookeeper
kafka:
image: nexus3.onap.org:10001/onap/dmaap/kafka111:1.1.0
container_name: dmaap-kafka
ports:
- "9092:9092"
environment:
enableCadi: 'false'
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 40000
KAFKA_ZOOKEEPER_SESSION_TIMEOUT_MS: 40000
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: INTERNAL_PLAINTEXT://kafka:9092
KAFKA_LISTENERS: INTERNAL_PLAINTEXT://0.0.0.0:9092
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_PLAINTEXT
KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
KAFKA_OPTS: -Djava.security.auth.login.config=/etc/kafka/secrets/jaas/zk_client_jaas.conf
KAFKA_ZOOKEEPER_SET_ACL: 'true'
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
# Reduced the number of partitions only to avoid the timeout error for the first subscribe call in slow environment
KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS: 1
volumes:
- ./assets/kafka/zk_client_jaas.conf:/etc/kafka/secrets/jaas/zk_client_jaas.conf
networks:
net:
aliases:
- kafka
depends_on:
- zookeeper
dmaap-mr:
image: nexus3.onap.org:10001/onap/dmaap/dmaap-mr:1.3.0
container_name: dmaap-mr
ports:
- "3904:3904"
- "3905:3905"
environment:
enableCadi: 'false'
volumes:
- ./assets/mr/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
networks:
net:
aliases:
- dmaap-mr
depends_on:
- zookeeper
- kafka
db:
container_name: db
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: $DB_PASSWORD
POSTGRES_USER: $DB_USER
networks:
net:
aliases:
- db
aai:
container_name: aai-sim
image: mockserver/mockserver:mockserver-5.9.0
environment:
MOCKSERVER_PROPERTY_FILE: /config/mockserver.properties
MOCKSERVER_INITIALIZATION_JSON_PATH: /config/aai-initializer.json
LOG_LEVEL: "DEBUG"
volumes:
- ./assets/aai_sim/aai_mockserver.properties:/config/mockserver.properties
- ./assets/aai_sim/aai-initializer.json:/config/aai-initializer.json
- ./assets/ssl_certs/mock_server_cacert.pem:/var/tmp/mock_server_cacert.pem
- ./assets/ssl_certs/mock_server_key.pem:/var/tmp/mock_server_key.pem
networks:
net:
aliases:
- aai-sim
cbs-sim:
container_name: cbs-sim
image: mockserver/mockserver:mockserver-5.9.0
environment:
MOCKSERVER_PROPERTY_FILE: /config/mockserver.properties
MOCKSERVER_INITIALIZATION_JSON_PATH: /config/cbs-initializer.json
LOG_LEVEL: "DEBUG"
SERVER_PORT: 10443
volumes:
- ./assets/cbs_sim/cbs_mockserver.properties:/config/mockserver.properties
- ./assets/cbs_sim/cbs-initializer.json:/config/cbs-initializer.json
- ./assets/ssl_certs/mock_server_cacert.pem:/var/tmp/mock_server_cacert.pem
- ./assets/ssl_certs/mock_server_key.pem:/var/tmp/mock_server_key.pem
networks:
net:
aliases:
- cbs-sim
pmsh:
container_name: pmsh
image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pmsh:latest
depends_on:
- db
volumes:
- ./assets/ssl_certs/cert.pem:/opt/app/pmsh/etc/certs/cert.pem
- ./assets/ssl_certs/key.pem:/opt/app/pmsh/etc/certs/key.pem
- ./assets/ssl_certs/mock_server_cacert.pem:/opt/app/pmsh/etc/certs/cacert.pem
environment:
HOSTNAME: "dcae-pmsh"
CONFIG_BINDING_SERVICE: cbs-sim
PMSH_PG_URL: db
PMSH_PG_USERNAME: $DB_USER
PMSH_PG_PASSWORD: $DB_PASSWORD
AAI_SERVICE_PORT: 1080
DCAE_CA_CERTPATH: '/opt/app/pmsh/etc/certs/cacert.pem'
networks:
net:
aliases:
- pmsh
networks:
net:
driver: bridge
|