f7e5088d7f6dd698a2057476e0597085ffb82ab0
[oam.git] / solution / integration / smo / oam / 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   sdnc-web:
19     image: ${SDNC_WEB_IMAGE}
20     container_name: sdnc-web
21     ports: 
22       - ${SDNC_WEB_PORT}:${SDNC_WEB_PORT}
23     environment: 
24       - ENABLE_OAUTH=true
25       - WEBPROTOCOL=HTTPS
26       - WEBPORT=${SDNC_WEB_PORT}
27       - SDNRPROTOCOL=http
28       - SDNRHOST=sdnr
29       - SDNRPORT=${SDNC_REST_PORT}
30       - SSL_CERT_DIR=/opt/app/osaaf/local/certs
31       - SSL_CERTIFICATE=cert.pem
32       - SSL_CERTIFICATE_KEY=key.pem
33     volumes:
34       - ./sdnc-web:/opt/app/osaaf/local/certs
35     networks:
36       dmz:
37       smo:
38
39   sdnr:
40     image: ${SDNC_IMAGE}
41     container_name: sdnr
42     ports:
43       - ${SDNC_REST_PORT}:8181
44       - 8101:8101
45       - 6666:6666
46       - 4335:4335
47     environment:
48       - SDNC_CONFIG_DIR=/opt/onap/ccsdk/data/properties
49       - ODL_CERT_DIR=${SDNC_CERT_DIR}
50       - ENABLE_ODL_CLUSTER=false
51       - SDNC_REPLICAS=0
52       - CCSDK_REPLICAS=0
53       - DOMAIN=""
54       - SDNRWT=true
55       - SDNRONLY=true
56       - SDNRINIT=true
57       - SDNRDM=true
58       - SDNRDBURL=http://persistence:9200
59       - A1_ADAPTER_NORTHBOUND=false
60       - ODL_ADMIN_PASSWORD=${ADMIN_PASSWORD}
61       - ENABLE_OAUTH=true
62       - SDNR_NETCONF_CALLHOME_ENABLED=true
63       - JAVA_OPTS=-Xms256m -Xmx4g
64       - IDENTITY_PROVIDER_URL=${IDENTITY_PROVIDER_URL}
65       - SDNC_WEB_URL=https://sdnc-web:${SDNC_WEB_PORT}
66     volumes:
67       - ./sdnr/oauth-aaa-app-config.xml:/opt/opendaylight/current/system/org/opendaylight/aaa/aaa-shiro/0.13.3/aaa-shiro-0.13.3-aaa-app-config.xml
68       - ./sdnr/oauth-provider.config.json:/opt/opendaylight/etc/oauth-provider.config.json
69       - ./sdnr/devicemanager.properties:/opt/opendaylight/etc/devicemanager.properties
70       - ./sdnr/mountpoint-registrar.properties:/opt/opendaylight/etc/mountpoint-registrar.properties
71       - ./sdnr/certs/certs.properties:${SDNC_CERT_DIR}/certs.properties
72       - ./sdnr/certs/keys0.zip:${SDNC_CERT_DIR}/keys0.zip
73     networks:
74       dmz:
75       smo:
76       default:
77         ipv6_address: ${SDNC_OAM_IPv6}
78
79   ves-collector:
80     image: ${VES_COLLECTOR_IMAGE}
81     container_name: ves-collector
82     environment:
83       DMAAPHOST: onap-dmaap
84     ports:
85       - 8080:8080
86       - 8443:8443
87     volumes:
88       - ./ves-collector/collector.properties:/opt/app/VESCollector/etc/collector.properties
89       - ./ves-collector/ves-dmaap-config.json:/opt/app/VESCollector/etc/ves-dmaap-config.json
90       - ./ves-collector/externalRepo:/opt/app/VESCollector/etc/externalRepo
91     networks:
92       smo:
93       default:
94         ipv6_address: ${VES_COLLECTOR_OAM_IPv6}
95
96 networks:
97   dmz:
98     external: true
99   smo:
100     external: true
101   default:
102     driver: bridge
103     name: oam
104     enable_ipv6: true
105     ipam:
106       driver: default
107       config:
108       - subnet:  ${NETWORK_SUBNET_OAM_IPv6}
109         gateway: ${NETWORK_GATEWAY_OAM_IPv6}