CI: Migrate Sonar Scan job to GHA
[smo/o1.git] / client / docker-compose.yml
1 ################################################################################
2 # Copyright 2021 highstreet technologies and others
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: "2.2"
17 services:
18   sdnrdb:
19     image: ${SDNRDB_IMAGE}
20     container_name: sdnrdb
21     environment:
22       - discovery.type=single-node
23     networks:
24       integration:
25         ipv4_address: ${IPv4_SDNRDB}
26         ipv6_address: ${IPv6_SDNRDB}
27
28   sdnr:
29     image: ${SDNC_IMAGE}
30     container_name: sdnr
31     ports:
32       - "8181:8181"
33       - "8101:8101"
34     environment:
35       - SDNC_CONFIG_DIR=/opt/onap/ccsdk/data/properties
36       - ODL_CERT_DIR=${ODL_CERT_DIR}
37       - ENABLE_ODL_CLUSTER=false
38       - SDNC_REPLICAS=0
39       - CCSDK_REPLICAS=0
40       - DOMAIN=""
41       - SDNRWT=true
42       - SDNRINIT=true
43       - SDNRONLY=true
44       - SDNRDBURL=http://sdnrdb:9200
45       - A1_ADAPTER_NORTHBOUND=false
46       - ODL_ADMIN_PASSWORD=${ODL_ADMIN_PASSWORD}
47       - JAVA_OPTS=-Xms256m -Xmx2g
48     volumes:
49       - ./sdnr/certs/certs.properties:${ODL_CERT_DIR}/certs.properties
50       - ./sdnr/certs/keys0.zip:${ODL_CERT_DIR}/keys0.zip
51       - ./sdnr/logo.gif:/opt/opendaylight/etc/logo.gif
52     networks:
53       integration:
54         ipv4_address: ${IPv4_SDNC}
55         ipv6_address: ${IPv6_SDNC}
56     logging:
57       driver:   "json-file"
58       options:
59         max-size: "30m"
60         max-file: "5"
61
62 networks:
63   integration:
64     driver: bridge
65     enable_ipv6: true
66     ipam:
67       driver: default
68       config:
69       - subnet: ${IPv4_NETWORK_SUBNET}
70         gateway: ${IPv4_GATEWAY}
71       - subnet: ${IPv6_NETWORK_SUBNET}
72         gateway: ${IPv6_GATEWAY}