Added O1 netconf support through SDNR
[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     networks:
52       integration:
53         ipv4_address: ${IPv4_SDNC}
54         ipv6_address: ${IPv6_SDNC}
55     logging:
56       driver:   "json-file"
57       options:
58         max-size: "30m"
59         max-file: "5"
60
61 networks:
62   integration:
63     driver: bridge
64     enable_ipv6: true
65     ipam:
66       driver: default
67       config:
68       - subnet: ${IPv4_NETWORK_SUBNET}
69         gateway: ${IPv4_GATEWAY}
70       - subnet: ${IPv6_NETWORK_SUBNET}
71         gateway: ${IPv6_GATEWAY}