BjornMagnussonXA | 56683ca | 2022-04-04 17:17:22 +0200 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # Copyright 2021 highstreet technologies GmbH |
| 3 | # |
| 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 |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 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. |
| 15 | # |
| 16 | |
| 17 | version: '3.8' |
| 18 | services: |
| 19 | identity: |
| 20 | image: ${IDENTITY_IMAGE} |
| 21 | container_name: identity |
| 22 | ports: |
| 23 | - ${IDENTITY_PORT}:8443 |
| 24 | environment: |
| 25 | - KEYCLOAK_USER=${ADMIN_USERNAME} |
| 26 | - KEYCLOAK_PASSWORD=${ADMIN_PASSWORD} |
| 27 | - JAVA_OPTS=-Djboss.bind.address.private=[::1] -Djboss.bind.address=[::1] -Djava.net.preferIPv6Addresses=true -Djava.net.preferIPv4Stack=false |
| 28 | - DB_VENDOR=h2 |
| 29 | networks: |
| 30 | dmz: |
| 31 | labels: |
| 32 | - "pmflowtest=cont" |
| 33 | |
| 34 | persistence: |
| 35 | image: ${PERSISTENCE_IMAGE} |
| 36 | container_name: persistence |
| 37 | environment: |
| 38 | - discovery.type=single-node |
| 39 | labels: |
| 40 | - "pmflowtest=cont" |
| 41 | |
| 42 | zookeeper: |
| 43 | image: ${ZOOKEEPER_IMAGE} |
| 44 | container_name: zookeeper |
| 45 | ports: |
| 46 | - 2181:2181 |
| 47 | environment: |
| 48 | ZOOKEEPER_REPLICAS: 1 |
| 49 | ZOOKEEPER_TICK_TIME: 2000 |
| 50 | ZOOKEEPER_SYNC_LIMIT: 5 |
| 51 | ZOOKEEPER_INIT_LIMIT: 10 |
| 52 | ZOOKEEPER_MAX_CLIENT_CNXNS: 200 |
| 53 | ZOOKEEPER_AUTOPURGE_SNAP_RETAIN_COUNT: 3 |
| 54 | ZOOKEEPER_AUTOPURGE_PURGE_INTERVAL: 24 |
| 55 | ZOOKEEPER_CLIENT_PORT: 2181 |
| 56 | 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 |
| 57 | ZOOKEEPER_SERVER_ID: |
| 58 | volumes: |
| 59 | - ./zookeeper/zk_server_jaas.conf:/etc/zookeeper/secrets/jaas/zk_server_jaas.conf |
| 60 | labels: |
| 61 | - "pmflowtest=cont" |
| 62 | |
| 63 | kafka: |
| 64 | image: ${KAFKA_IMAGE} |
| 65 | container_name: kafka |
| 66 | ports: |
| 67 | - 9092:9092 |
| 68 | environment: |
| 69 | enableCadi: 'false' |
| 70 | KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 |
| 71 | KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 40000 |
| 72 | KAFKA_ZOOKEEPER_SESSION_TIMEOUT_MS: 40000 |
| 73 | KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT |
| 74 | KAFKA_ADVERTISED_LISTENERS: INTERNAL_PLAINTEXT://kafka:9092 |
| 75 | KAFKA_LISTENERS: INTERNAL_PLAINTEXT://0.0.0.0:9092 |
| 76 | KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_PLAINTEXT |
| 77 | KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE: 'false' |
| 78 | KAFKA_OPTS: -Djava.security.auth.login.config=/etc/kafka/secrets/jaas/zk_client_jaas.conf |
| 79 | KAFKA_ZOOKEEPER_SET_ACL: 'true' |
| 80 | KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 |
| 81 | # Reduced the number of partitions only to avoid the timeout error for the first subscribe call in slow environment |
| 82 | KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS: 1 |
| 83 | volumes: |
| 84 | - ./kafka/zk_client_jaas.conf:/etc/kafka/secrets/jaas/zk_client_jaas.conf |
| 85 | depends_on: |
| 86 | - zookeeper |
| 87 | labels: |
| 88 | - "pmflowtest=cont" |
| 89 | |
| 90 | dmaap: |
| 91 | container_name: onap-dmaap |
| 92 | image: ${DMAAP_IMAGE} |
| 93 | ports: |
| 94 | - 3904:3904 |
| 95 | - 3905:3905 |
| 96 | environment: |
| 97 | enableCadi: 'false' |
| 98 | volumes: |
| 99 | - ./dmaap/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties |
| 100 | - ./dmaap/logback.xml:/appl/dmaapMR1/bundleconfig/etc/logback.xml |
| 101 | - ./dmaap/cadi.properties:/appl/dmaapMR1/etc/cadi.properties |
| 102 | depends_on: |
| 103 | - zookeeper |
| 104 | - kafka |
| 105 | labels: |
| 106 | - "pmflowtest=cont" |
| 107 | |
| 108 | |
| 109 | networks: |
| 110 | dmz: |
| 111 | driver: bridge |
| 112 | name: dmz |
| 113 | enable_ipv6: false |
| 114 | default: |
| 115 | driver: bridge |
| 116 | name: smo |
| 117 | enable_ipv6: true |
| 118 | ipam: |
| 119 | driver: default |
| 120 | config: |
| 121 | - subnet: ${NETWORK_SUBNET_SMO} |
| 122 | gateway: ${NETWORK_GATEWAY_SMO} |