1 ################################################################################
2 # Copyright 2022 highstreet technologies GmbH
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
20 image: ${IDENTITY_IMAGE}
21 container_name: identity
23 - ${IDENTITY_PORT_HTTPS}:${IDENTITY_PORT_HTTPS}
25 - KEYCLOAK_HTTPS_PORT=${IDENTITY_PORT_HTTPS}
26 - KEYCLOAK_CREATE_ADMIN_USER=true
27 - KEYCLOAK_ADMIN_USER=${ADMIN_USERNAME}
28 - KEYCLOAK_ADMIN_PASSWORD=${ADMIN_PASSWORD}
29 - KEYCLOAK_MANAGEMENT_USER=${IDENTITY_MGMT_USERNAME}
30 - KEYCLOAK_MANAGEMENT_PASSWORD=${IDENTITY_MGMT_PASSWORD}
31 - KEYCLOAK_DATABASE_HOST=identitydb
32 - KEYCLOAK_DATABASE_NAME=keycloak
33 - KEYCLOAK_DATABASE_USER=keycloak
34 - KEYCLOAK_DATABASE_PASSWORD=keycloak
35 - KEYCLOAK_JDBC_PARAMS=sslmode=disable&connectTimeout=30000
36 - KEYCLOAK_PRODUCTION=false
37 - KEYCLOAK_ENABLE_TLS=true
38 - KEYCLOAK_TLS_KEYSTORE_FILE=/opt/bitnami/keycloak/certs/keystore.jks
39 - KEYCLOAK_TLS_TRUSTSTORE_FILE=/opt/bitnami/keycloak/certs/truststore.jks
40 - KEYCLOAK_TLS_KEYSTORE_PASSWORD=password
41 - KEYCLOAK_TLS_TRUSTSTORE_PASSWORD=changeit
43 - /etc/localtime:/etc/localtime:ro
44 - ./identity/standalone.xml:/opt/jboss/keycloak/standalone/configuration/standalone.xml
45 - ./identity/keystore.jks:/opt/bitnami/keycloak/certs/keystore.jks
46 - ./identity/truststoreONAPall.jks:/opt/bitnami/keycloak/certs/truststore.jks
53 image: docker.io/bitnami/postgresql:13
54 container_name: identitydb
56 - ALLOW_EMPTY_PASSWORD=no
57 - POSTGRESQL_USERNAME=keycloak
58 - POSTGRESQL_DATABASE=keycloak
59 - POSTGRESQL_PASSWORD=keycloak
65 image: ${PERSISTENCE_IMAGE}
66 container_name: persistence
68 - discovery.type=single-node
71 image: ${ZOOKEEPER_IMAGE}
72 container_name: zookeeper
77 ZOOKEEPER_TICK_TIME: 2000
78 ZOOKEEPER_SYNC_LIMIT: 5
79 ZOOKEEPER_INIT_LIMIT: 10
80 ZOOKEEPER_MAX_CLIENT_CNXNS: 200
81 ZOOKEEPER_AUTOPURGE_SNAP_RETAIN_COUNT: 3
82 ZOOKEEPER_AUTOPURGE_PURGE_INTERVAL: 24
83 ZOOKEEPER_CLIENT_PORT: 2181
84 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
87 - ./zookeeper/zk_server_jaas.conf:/etc/zookeeper/secrets/jaas/zk_server_jaas.conf
96 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
97 KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 40000
98 KAFKA_ZOOKEEPER_SESSION_TIMEOUT_MS: 40000
99 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT
100 KAFKA_ADVERTISED_LISTENERS: INTERNAL_PLAINTEXT://kafka:9092
101 KAFKA_LISTENERS: INTERNAL_PLAINTEXT://0.0.0.0:9092
102 KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_PLAINTEXT
103 KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
104 KAFKA_OPTS: -Djava.security.auth.login.config=/etc/kafka/secrets/jaas/zk_client_jaas.conf
105 KAFKA_ZOOKEEPER_SET_ACL: 'true'
106 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
107 # Reduced the number of partitions only to avoid the timeout error for the first subscribe call in slow environment
108 KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS: 1
110 - ./kafka/zk_client_jaas.conf:/etc/kafka/secrets/jaas/zk_client_jaas.conf
115 container_name: onap-dmaap
116 image: ${DMAAP_IMAGE}
123 - ./dmaap/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
124 - ./dmaap/logback.xml:/appl/dmaapMR1/bundleconfig/etc/logback.xml
125 - ./dmaap/cadi.properties:/appl/dmaapMR1/etc/cadi.properties
142 - subnet: ${NETWORK_SUBNET_SMO}
143 gateway: ${NETWORK_GATEWAY_SMO}