Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / csit / scripts / sdnr / docker-compose / docker-compose-onap-addons.yaml
1 version: '2'
2 services:
3   zookeeper:
4     image: ${ZOOKEEPER_IMAGE}
5     container_name: zookeeper
6     ports:
7       - "2181:2181"
8     environment:
9       ZOOKEEPER_REPLICAS: 1
10       ZOOKEEPER_TICK_TIME: 2000
11       ZOOKEEPER_SYNC_LIMIT: 5
12       ZOOKEEPER_INIT_LIMIT: 10
13       ZOOKEEPER_MAX_CLIENT_CNXNS: 200
14       ZOOKEEPER_AUTOPURGE_SNAP_RETAIN_COUNT: 3
15       ZOOKEEPER_AUTOPURGE_PURGE_INTERVAL: 24
16       ZOOKEEPER_CLIENT_PORT: 2181
17       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
18       ZOOKEEPER_SERVER_ID:
19     volumes:
20       -  ./zk/zk_server_jaas.conf:/etc/zookeeper/secrets/jaas/zk_server_jaas.conf
21     networks:
22       integration:
23         aliases:
24         - zookeeper
25         ipv4_address: ${ZOOKEEPER_IP}
26   kafka:
27     image: ${KAFKA_IMAGE}
28     container_name: kafka
29     ports:
30      - "9092:9092"
31     environment:
32       enableCadi: 'false'
33       KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
34       KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 40000
35       KAFKA_ZOOKEEPER_SESSION_TIMEOUT_MS: 40000
36       KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT
37       KAFKA_ADVERTISED_LISTENERS: INTERNAL_PLAINTEXT://kafka:9092
38       KAFKA_LISTENERS: INTERNAL_PLAINTEXT://0.0.0.0:9092
39       KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_PLAINTEXT
40       KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
41       KAFKA_OPTS: -Djava.security.auth.login.config=/etc/kafka/secrets/jaas/zk_client_jaas.conf
42       KAFKA_ZOOKEEPER_SET_ACL: 'true'
43       KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
44       # Reduced the number of partitions only to avoid the timeout error for the first subscribe call in slow environment
45       KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS: 1
46     volumes:
47       -  ./kafka/zk_client_jaas.conf:/etc/kafka/secrets/jaas/zk_client_jaas.conf
48     networks:
49       integration:
50         aliases:
51         - kafka
52         ipv4_address: ${KAFKA_IP}
53
54     depends_on:
55      - zookeeper
56   onap-dmaap:
57     container_name: onap-dmaap
58     image: ${DMAAP_IMAGE}
59     ports:
60       - "3904:3904"
61       - "3905:3905"
62     environment:
63       enableCadi: 'false'
64     volumes:
65       - ./mr/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
66       - ./mr/logback.xml:/appl/dmaapMR1/bundleconfig/etc/logback.xml
67       - ./mr/cadi.properties:/appl/dmaapMR1/etc/cadi.properties
68     networks:
69       integration:
70         aliases:
71         - dmaap
72         ipv4_address: ${DMAAP_IP}
73
74     depends_on:
75       - zookeeper
76       - kafka
77   vesc:
78     image: ${VESC_IMAGE}
79     container_name: vescollector
80     environment:
81       DMAAPHOST: "dmaap"
82     ports:
83       - "8080:8080"
84       - "8443:8443"
85     volumes:
86       - ./vesc/collector.properties:/opt/app/VESCollector/etc/collector.properties
87       - ./vesc/ves-dmaap-config.json:/opt/app/VESCollector/etc/ves-dmaap-config.json
88       - ./vesc/externalRepo:/opt/app/VESCollector/etc/externalRepo
89
90     networks:
91       integration:
92         ipv4_address: ${VESCOLLECTOR_IP}
93
94 networks:
95   integration:
96     name: ${NETWORK_NAME}
97     driver: bridge
98     ipam:
99       driver: default
100       config:
101       - subnet: ${NETWORK_SUBNET}