c05bc9843cd0c0a2878590dc0a14a39fcd54dd57
[oam.git] / solution / operation-and-maintenance / 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       - ./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       - 6666:6666
45       - 4335:4335
46     environment:
47       - ENABLE_ODL_CLUSTER=false
48       - ENABLE_OAUTH=true
49       - ODL_CERT_DIR=${SDNC_CERT_DIR}
50       - ODL_ADMIN_PASSWORD=${ADMIN_PASSWORD}
51       - SDNC_CONFIG_DIR=/opt/onap/ccsdk/data/properties
52       - SDNC_REPLICAS=0
53       - CCSDK_REPLICAS=0
54       - DOMAIN=""
55       - SDNRWT=true
56       - SDNRONLY=true
57       - SDNRINIT=true
58       - SDNRDM=true
59       - SDNRDBURL=http://persistence:9200
60       - SDNR_NETCONF_CALLHOME_ENABLED=true
61       - A1_ADAPTER_NORTHBOUND=false
62       - JAVA_OPTS=-Xms256m -Xmx4g
63       - IDENTITY_PROVIDER_URL=${IDENTITY_PROVIDER_URL}
64       - SDNC_WEB_URL=https://sdnc-web:${SDNC_WEB_PORT}
65       - SDNR_VES_COLLECTOR_ENABLED=true
66       - SDNR_VES_COLLECTOR_TLS_ENABLED=true
67       - SDNR_VES_COLLECTOR_TRUST_ALL_CERTS=true
68       - SDNR_VES_COLLECTOR_IP=ves-collector
69       - SDNR_VES_COLLECTOR_PORT=$VES_ENDPOINT_PORT
70       - SDNR_VES_COLLECTOR_VERSION=v7
71       - SDNR_VES_COLLECTOR_REPORTING_ENTITY_NAME=ONAP SDN-R
72       - SDNR_VES_COLLECTOR_EVENTLOG_MSG_DETAIL=LONG
73       - SDNR_VES_COLLECTOR_USERNAME=${VES_ENDPOINT_USERNAME}
74       - SDNR_VES_COLLECTOR_PASSWORD=${VES_ENDPOINT_PASSWORD}
75     volumes:
76       - ./controller/oauth-aaa-app-config.xml:/opt/onap/sdnc/data/oauth-aaa-app-config.xml
77       - ./controller/oauth-provider.config.json:/opt/opendaylight/etc/oauth-provider.config.json
78       - ./controller/devicemanager.properties:/opt/opendaylight/etc/devicemanager.properties
79       - ./controller/mountpoint-registrar.properties:/opt/opendaylight/etc/mountpoint-registrar.properties
80       - ./controller/certs/certs.properties:${SDNC_CERT_DIR}/certs.properties
81       - ./controller/certs/keys0.zip:${SDNC_CERT_DIR}/keys0.zip
82     networks:
83       dmz:
84       smo:
85       default:
86         ipv6_address: ${SDNC_OAM_IPv6}
87
88   ves-collector:
89     image: ${VES_COLLECTOR_IMAGE}
90     container_name: ves-collector
91     environment:
92       DMAAPHOST: onap-dmaap
93     ports:
94       - 8443:8443
95     volumes:
96       - ./ves-collector/collector.properties:/opt/app/VESCollector/etc/collector.properties
97       - ./ves-collector/ves-dmaap-config.json:/opt/app/VESCollector/etc/ves-dmaap-config.json
98       - ./ves-collector/externalRepo:/opt/app/VESCollector/etc/externalRepo
99     networks:
100       smo:
101       default:
102         ipv6_address: ${VES_COLLECTOR_OAM_IPv6}
103
104 networks:
105   dmz:
106     external: true
107   smo:
108     external: true
109   default:
110     driver: bridge
111     name: oam
112     enable_ipv6: true
113     ipam:
114       driver: default
115       config:
116       - subnet:  ${NETWORK_SUBNET_OAM_IPv6}
117         gateway: ${NETWORK_GATEWAY_OAM_IPv6}