Add to_directory method to relevant object classes
[oam.git] / solution / integration / smo / common / docker-compose.yml
1 ################################################################################
2 # Copyright 2022 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}:8443
23     environment:
24       - KEYCLOAK_USER=${ADMIN_USERNAME}
25       - KEYCLOAK_PASSWORD=${ADMIN_PASSWORD}
26       - JAVA_OPTS=-Djboss.bind.address.private=[::1] -Djboss.bind.address=[::1] -Djava.net.preferIPv6Addresses=true -Djava.net.preferIPv4Stack=false
27       - DB_VENDOR=h2
28     networks:
29       dmz:
30
31   persistence:
32     image: ${PERSISTENCE_IMAGE}
33     container_name: persistence
34     environment:
35       - discovery.type=single-node
36
37   zookeeper:
38     image: ${ZOOKEEPER_IMAGE}
39     container_name: zookeeper
40     ports:
41       - 2181:2181
42     environment:
43       ZOOKEEPER_REPLICAS: 1
44       ZOOKEEPER_TICK_TIME: 2000
45       ZOOKEEPER_SYNC_LIMIT: 5
46       ZOOKEEPER_INIT_LIMIT: 10
47       ZOOKEEPER_MAX_CLIENT_CNXNS: 200
48       ZOOKEEPER_AUTOPURGE_SNAP_RETAIN_COUNT: 3
49       ZOOKEEPER_AUTOPURGE_PURGE_INTERVAL: 24
50       ZOOKEEPER_CLIENT_PORT: 2181
51       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
52       ZOOKEEPER_SERVER_ID:
53     volumes:
54       -  ./zookeeper/zk_server_jaas.conf:/etc/zookeeper/secrets/jaas/zk_server_jaas.conf
55
56   kafka:
57     image: ${KAFKA_IMAGE}
58     container_name: kafka
59     ports:
60      - 9092:9092
61     environment:
62       enableCadi: 'false'
63       KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
64       KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 40000
65       KAFKA_ZOOKEEPER_SESSION_TIMEOUT_MS: 40000
66       KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT
67       KAFKA_ADVERTISED_LISTENERS: INTERNAL_PLAINTEXT://kafka:9092
68       KAFKA_LISTENERS: INTERNAL_PLAINTEXT://0.0.0.0:9092
69       KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_PLAINTEXT
70       KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
71       KAFKA_OPTS: -Djava.security.auth.login.config=/etc/kafka/secrets/jaas/zk_client_jaas.conf
72       KAFKA_ZOOKEEPER_SET_ACL: 'true'
73       KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
74       # Reduced the number of partitions only to avoid the timeout error for the first subscribe call in slow environment
75       KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS: 1
76     volumes:
77       -  ./kafka/zk_client_jaas.conf:/etc/kafka/secrets/jaas/zk_client_jaas.conf
78     depends_on:
79      - zookeeper
80
81   dmaap:
82     container_name: onap-dmaap
83     image: ${DMAAP_IMAGE}
84     ports:
85       - 3904:3904
86       - 3905:3905
87     environment:
88       enableCadi: 'false'
89     volumes:
90       - ./dmaap/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
91       - ./dmaap/logback.xml:/appl/dmaapMR1/bundleconfig/etc/logback.xml
92       - ./dmaap/cadi.properties:/appl/dmaapMR1/etc/cadi.properties
93     depends_on:
94       - zookeeper
95       - kafka
96
97   o-ran-sc-topology-service:
98     image: "${O_RAN_SC_TOPOLOGY_IMAGE}"
99     container_name: o-ran-sc-topology-service
100     hostname: o-ran-sc-topology-service
101     ports:
102       - 18181:8181
103     volumes:
104         - ./o-ran-sc-topology-service/tapi-common-operational.json:/opt/dev/deploy/data/tapi-common-operational.json
105         - ./o-ran-sc-topology-service/tapi-common-running.json:/opt/dev/deploy/data/tapi-common-running.json
106
107   wireshark:
108     image: "${WIRESHARK_IMAGE}"
109     container_name: wireshark
110     cap_add:
111       - NET_ADMIN
112     network_mode: host
113     environment:
114       - PUID=1000
115       - PGID=1000
116       - TZ=Europe/London
117     volumes:
118       - ./wireshark:/config
119     # no port mappbecause of network mode host.
120     # ports:
121     #   - 3000:3000
122     restart: unless-stopped
123 networks:
124   dmz:
125     driver: bridge
126     name: dmz
127     enable_ipv6: false
128   default:
129     driver: bridge
130     name: smo
131     enable_ipv6: true
132     ipam:
133       driver: default
134       config:
135       - subnet:  ${NETWORK_SUBNET_SMO}
136         gateway: ${NETWORK_GATEWAY_SMO}