Add to_directory method to relevant object classes
[oam.git] / solution / integration / smo / common / docker-compose.yml
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 version: '3.8'
17 services:
18   identity:
19     image: ${IDENTITY_IMAGE}
20     container_name: identity
21     ports: 
22       - ${IDENTITY_PORT}:${IDENTITY_PORT}
23     environment: 
24       - KEYCLOAK_USER=${ADMIN_USERNAME}
25       - KEYCLOAK_PASSWORD=${ADMIN_PASSWORD}
26       - JAVA_OPTS=-Djboss.http.port=${IDENTITY_PORT}
27     networks:
28       dmz:
29               
30   topology:
31     image: ${TOPOLOGY_IMAGE}
32     container_name: topology
33     ports:
34       - 3001:3001
35     environment:
36       - AUTH_ENABLED=true
37       - AUTH_HOST_URL=${IDENTITY_PROVIDER_URL}
38       # - AUTH_CONFIG_FILE 
39       - PROVIDERS=${TOPOLOGY_PROVIDERS}
40       - LOAD_PACKAGES=com.highstreet
41  
42   persistence:
43     image: ${PERSISTENCE_IMAGE}
44     container_name: persistence
45     environment:
46       - discovery.type=single-node
47
48   zookeeper:
49     image: ${ZOOKEEPER_IMAGE}
50     container_name: zookeeper
51     ports:
52       - 2181:2181
53     environment:
54       ZOOKEEPER_REPLICAS: 1
55       ZOOKEEPER_TICK_TIME: 2000
56       ZOOKEEPER_SYNC_LIMIT: 5
57       ZOOKEEPER_INIT_LIMIT: 10
58       ZOOKEEPER_MAX_CLIENT_CNXNS: 200
59       ZOOKEEPER_AUTOPURGE_SNAP_RETAIN_COUNT: 3
60       ZOOKEEPER_AUTOPURGE_PURGE_INTERVAL: 24
61       ZOOKEEPER_CLIENT_PORT: 2181
62       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
63       ZOOKEEPER_SERVER_ID:
64     volumes:
65       -  ./zookeeper/zk_server_jaas.conf:/etc/zookeeper/secrets/jaas/zk_server_jaas.conf
66
67   kafka:
68     image: ${KAFKA_IMAGE}
69     container_name: kafka
70     ports:
71      - 9092:9092
72     environment:
73       enableCadi: 'false'
74       KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
75       KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 40000
76       KAFKA_ZOOKEEPER_SESSION_TIMEOUT_MS: 40000
77       KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT
78       KAFKA_ADVERTISED_LISTENERS: INTERNAL_PLAINTEXT://kafka:9092
79       KAFKA_LISTENERS: INTERNAL_PLAINTEXT://0.0.0.0:9092
80       KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_PLAINTEXT
81       KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
82       KAFKA_OPTS: -Djava.security.auth.login.config=/etc/kafka/secrets/jaas/zk_client_jaas.conf
83       KAFKA_ZOOKEEPER_SET_ACL: 'true'
84       KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
85       # Reduced the number of partitions only to avoid the timeout error for the first subscribe call in slow environment
86       KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS: 1
87     volumes:
88       -  ./kafka/zk_client_jaas.conf:/etc/kafka/secrets/jaas/zk_client_jaas.conf
89     depends_on:
90      - zookeeper
91
92   dmaap:
93     container_name: onap-dmaap
94     image: ${DMAAP_IMAGE}
95     ports:
96       - 3904:3904
97       - 3905:3905
98     environment:
99       enableCadi: 'false'
100     volumes:
101       - ./dmaap/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
102       - ./dmaap/logback.xml:/appl/dmaapMR1/bundleconfig/etc/logback.xml
103       - ./dmaap/cadi.properties:/appl/dmaapMR1/etc/cadi.properties
104     depends_on:
105       - zookeeper
106       - kafka
107
108 networks:
109   dmz:
110     driver: bridge
111     name: dmz
112     enable_ipv6: false
113   default:
114     driver: bridge
115     name: smo
116     enable_ipv6: true
117     ipam:
118       driver: default
119       config:
120       - subnet:  ${NETWORK_SUBNET_SMO}
121         gateway: ${NETWORK_GATEWAY_SMO}