blob: 73a7c0755b4ade042049034d49e52414047faf56 [file] [log] [blame]
AndyWalsheb412c7b2020-02-13 15:05:21 +00001version: '3.3'
2
3services:
efiacor69377612021-07-20 15:53:48 +01004 zookeeper:
5 image: nexus3.onap.org:10001/onap/dmaap/zookeeper:6.1.0
6 container_name: dmaap-zookeeper
7 ports:
8 - "2181:2181"
9 environment:
10 ZOOKEEPER_REPLICAS: 1
11 ZOOKEEPER_TICK_TIME: 2000
12 ZOOKEEPER_SYNC_LIMIT: 5
13 ZOOKEEPER_INIT_LIMIT: 10
14 ZOOKEEPER_MAX_CLIENT_CNXNS: 200
15 ZOOKEEPER_AUTOPURGE_SNAP_RETAIN_COUNT: 3
16 ZOOKEEPER_AUTOPURGE_PURGE_INTERVAL: 24
17 ZOOKEEPER_CLIENT_PORT: 2181
18 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=*
19 ZOOKEEPER_SERVER_ID: 1
20 volumes:
21 - ./assets/zk/zk_server_jaas.conf:/etc/zookeeper/secrets/jaas/zk_server_jaas.conf
22 networks:
23 net:
24 aliases:
25 - zookeeper
26
27 kafka:
28 image: nexus3.onap.org:10001/onap/dmaap/kafka111:1.1.0
29 container_name: dmaap-kafka
30 ports:
31 - "9092:9092"
32 environment:
33 enableCadi: 'false'
34 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
35 KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 40000
36 KAFKA_ZOOKEEPER_SESSION_TIMEOUT_MS: 40000
37 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT
38 KAFKA_ADVERTISED_LISTENERS: INTERNAL_PLAINTEXT://kafka:9092
39 KAFKA_LISTENERS: INTERNAL_PLAINTEXT://0.0.0.0:9092
40 KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_PLAINTEXT
41 KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
42 KAFKA_OPTS: -Djava.security.auth.login.config=/etc/kafka/secrets/jaas/zk_client_jaas.conf
43 KAFKA_ZOOKEEPER_SET_ACL: 'true'
44 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
45 # Reduced the number of partitions only to avoid the timeout error for the first subscribe call in slow environment
46 KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS: 1
47 volumes:
48 - ./assets/kafka/zk_client_jaas.conf:/etc/kafka/secrets/jaas/zk_client_jaas.conf
49 networks:
50 net:
51 aliases:
52 - kafka
53 depends_on:
54 - zookeeper
55
56 dmaap-mr:
57 image: nexus3.onap.org:10001/onap/dmaap/dmaap-mr:1.3.0
58 container_name: dmaap-mr
59 ports:
60 - "3904:3904"
61 - "3905:3905"
62 environment:
63 enableCadi: 'false'
64 volumes:
65 - ./assets/mr/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
66 networks:
67 net:
68 aliases:
69 - dmaap-mr
70 depends_on:
71 - zookeeper
72 - kafka
73
AndyWalsheb412c7b2020-02-13 15:05:21 +000074 db:
75 container_name: db
efiacor8b78bcc2021-04-08 16:55:08 +010076 image: nexus3.onap.org:10001/library/postgres:10
AndyWalsheb412c7b2020-02-13 15:05:21 +000077 restart: always
78 environment:
79 POSTGRES_PASSWORD: $DB_PASSWORD
80 POSTGRES_USER: $DB_USER
81 networks:
efiacor69377612021-07-20 15:53:48 +010082 net:
efiacor830e11d2021-01-29 14:28:34 +000083 aliases:
84 - db
AndyWalsheb412c7b2020-02-13 15:05:21 +000085
efiacor49b46442020-07-06 11:55:44 +010086 aai:
AndyWalshe48496a52020-03-12 12:52:19 +000087 container_name: aai-sim
efiacor8b78bcc2021-04-08 16:55:08 +010088 image: nexus3.onap.org:10001/mockserver/mockserver:latest
AndyWalshe48496a52020-03-12 12:52:19 +000089 environment:
90 MOCKSERVER_PROPERTY_FILE: /config/mockserver.properties
91 MOCKSERVER_INITIALIZATION_JSON_PATH: /config/aai-initializer.json
efiacor49b46442020-07-06 11:55:44 +010092 LOG_LEVEL: "DEBUG"
AndyWalshe48496a52020-03-12 12:52:19 +000093 volumes:
efiacore207b422020-04-23 10:36:54 +010094 - ./assets/aai_sim/aai_mockserver.properties:/config/mockserver.properties
95 - ./assets/aai_sim/aai-initializer.json:/config/aai-initializer.json
efiacor49b46442020-07-06 11:55:44 +010096 - ./assets/ssl_certs/mock_server_cacert.pem:/var/tmp/mock_server_cacert.pem
97 - ./assets/ssl_certs/mock_server_key.pem:/var/tmp/mock_server_key.pem
AndyWalshe48496a52020-03-12 12:52:19 +000098 networks:
efiacor69377612021-07-20 15:53:48 +010099 net:
efiacor830e11d2021-01-29 14:28:34 +0000100 aliases:
101 - aai-sim
AndyWalshe48496a52020-03-12 12:52:19 +0000102
103 cbs-sim:
104 container_name: cbs-sim
efiacor8b78bcc2021-04-08 16:55:08 +0100105 image: nexus3.onap.org:10001/mockserver/mockserver:latest
106 command: -logLevel DEBUG -serverPort 10443
107 ports:
108 - 10443:1080
AndyWalshe48496a52020-03-12 12:52:19 +0000109 environment:
110 MOCKSERVER_PROPERTY_FILE: /config/mockserver.properties
111 MOCKSERVER_INITIALIZATION_JSON_PATH: /config/cbs-initializer.json
112 volumes:
efiacore207b422020-04-23 10:36:54 +0100113 - ./assets/cbs_sim/cbs_mockserver.properties:/config/mockserver.properties
114 - ./assets/cbs_sim/cbs-initializer.json:/config/cbs-initializer.json
115 - ./assets/ssl_certs/mock_server_cacert.pem:/var/tmp/mock_server_cacert.pem
116 - ./assets/ssl_certs/mock_server_key.pem:/var/tmp/mock_server_key.pem
AndyWalshe48496a52020-03-12 12:52:19 +0000117 networks:
efiacor69377612021-07-20 15:53:48 +0100118 net:
efiacor830e11d2021-01-29 14:28:34 +0000119 aliases:
120 - cbs-sim
AndyWalshe48496a52020-03-12 12:52:19 +0000121
AndyWalsheb412c7b2020-02-13 15:05:21 +0000122 pmsh:
123 container_name: pmsh
efiacore207b422020-04-23 10:36:54 +0100124 image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pmsh:latest
AndyWalsheb412c7b2020-02-13 15:05:21 +0000125 depends_on:
126 - db
127 volumes:
efiacore207b422020-04-23 10:36:54 +0100128 - ./assets/ssl_certs/cert.pem:/opt/app/pmsh/etc/certs/cert.pem
129 - ./assets/ssl_certs/key.pem:/opt/app/pmsh/etc/certs/key.pem
130 - ./assets/ssl_certs/mock_server_cacert.pem:/opt/app/pmsh/etc/certs/cacert.pem
AndyWalsheb412c7b2020-02-13 15:05:21 +0000131 environment:
132 HOSTNAME: "dcae-pmsh"
efiacore207b422020-04-23 10:36:54 +0100133 CONFIG_BINDING_SERVICE: cbs-sim
AndyWalsheb412c7b2020-02-13 15:05:21 +0000134 PMSH_PG_URL: db
135 PMSH_PG_USERNAME: $DB_USER
136 PMSH_PG_PASSWORD: $DB_PASSWORD
efiacore207b422020-04-23 10:36:54 +0100137 AAI_SERVICE_PORT: 1080
138 DCAE_CA_CERTPATH: '/opt/app/pmsh/etc/certs/cacert.pem'
AndyWalsheb412c7b2020-02-13 15:05:21 +0000139 networks:
efiacor69377612021-07-20 15:53:48 +0100140 net:
efiacor830e11d2021-01-29 14:28:34 +0000141 aliases:
142 - pmsh
AndyWalsheb412c7b2020-02-13 15:05:21 +0000143
144networks:
efiacor69377612021-07-20 15:53:48 +0100145 net:
146 driver: bridge
efiacor830e11d2021-01-29 14:28:34 +0000147