3893e20b1380056c19fd712623ee45c89fb9f096
[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       - WEBPROTOCOL=HTTPS
25       - WEBPORT=${SDNC_WEB_PORT}
26       - SDNRPROTOCOL=http
27       - SDNRHOST=sdnr
28       - SDNRPORT=${SDNC_REST_PORT}
29       - SSL_CERT_DIR=/opt/app/osaaf/local/certs
30       - SSL_CERTIFICATE=cert.pem
31       - SSL_CERTIFICATE_KEY=key.pem
32       - ENABLE_OAUTH=true
33       - ENABLE_ODLUX_RBAC=false
34     volumes:
35       - ./web:/opt/app/osaaf/local/certs
36     networks:
37       dmz:
38       smo:
39
40   sdnr:
41     image: ${SDNC_IMAGE}
42     container_name: sdnr
43     ports:
44       - ${SDNC_REST_PORT}:8181
45       - 6666:6666
46       - 4335:4335
47     environment:
48       - LOG4J_FORMAT_MSG_NO_LOOKUPS=true
49       - KARAF_CONSOLE_LOG_LEVEL=INFO
50       - ENABLE_ODL_CLUSTER=false
51       - ENABLE_OAUTH=true
52       - ODL_CERT_DIR=${SDNC_CERT_DIR}
53       - ODL_ADMIN_PASSWORD=${ADMIN_PASSWORD}
54       - SDNC_CONFIG_DIR=/opt/onap/ccsdk/data/properties
55       - SDNC_REPLICAS=0
56       - CCSDK_REPLICAS=0
57       - DOMAIN=""
58       - SDNRWT=true
59       - SDNRONLY=true
60       - SDNRINIT=true
61       - SDNRDM=true
62       - SDNRDBURL=http://persistence:9200
63       - SDNRDBTRUSTALLCERTS=true
64       - SDNR_NETCONF_CALLHOME_ENABLED=true
65       - A1_ADAPTER_NORTHBOUND=false
66       - JAVA_OPTS=-Xms256m -Xmx4g
67       - IDENTITY_PROVIDER_URL=${IDENTITY_PROVIDER_URL}
68       - SDNC_WEB_URL=https://sdnc-web:${SDNC_WEB_PORT}
69
70       - SDNR_VES_COLLECTOR_ENABLED=true
71       - SDNR_VES_COLLECTOR_TLS_ENABLED=true
72       - SDNR_VES_COLLECTOR_TRUST_ALL_CERTS=true
73       - SDNR_VES_COLLECTOR_IP=ves-collector
74       - SDNR_VES_COLLECTOR_PORT=$VES_ENDPOINT_PORT
75       - SDNR_VES_COLLECTOR_VERSION=v7
76       - SDNR_VES_COLLECTOR_REPORTING_ENTITY_NAME=ONAP SDN-R
77       - SDNR_VES_COLLECTOR_EVENTLOG_MSG_DETAIL=LONG
78       - SDNR_VES_COLLECTOR_USERNAME=${VES_ENDPOINT_USERNAME}
79       - SDNR_VES_COLLECTOR_PASSWORD=${VES_ENDPOINT_PASSWORD}
80     volumes:
81       - ./controller/oauth-aaa-app-config.xml:/opt/onap/sdnc/data/oauth-aaa-app-config.xml
82       - ./controller/oauth-provider.config.json:/opt/opendaylight/etc/oauth-provider.config.json
83       - ./controller/devicemanager.properties:/opt/opendaylight/etc/devicemanager.properties
84       - ./controller/mountpoint-registrar.properties:/opt/opendaylight/etc/mountpoint-registrar.properties
85       - ./controller/certs/certs.properties:${SDNC_CERT_DIR}/certs.properties
86       - ./controller/certs/keys0.zip:${SDNC_CERT_DIR}/keys0.zip
87     networks:
88       dmz:
89       smo:
90       default:
91         ipv6_address: ${SDNC_OAM_IPv6}
92
93   ves-collector:
94     image: ${VES_COLLECTOR_IMAGE}
95     container_name: ves-collector
96     environment:
97       DMAAPHOST: onap-dmaap
98     ports:
99       - 8443:8443
100     volumes:
101       - ./ves-collector/collector.properties:/opt/app/VESCollector/etc/collector.properties
102       - ./ves-collector/ves-dmaap-config.json:/opt/app/VESCollector/etc/ves-dmaap-config.json
103       - ./ves-collector/externalRepo:/opt/app/VESCollector/etc/externalRepo
104     networks:
105       smo:
106       default:
107         ipv6_address: ${VES_COLLECTOR_OAM_IPv6}
108
109 networks:
110   dmz:
111     external: true
112   smo:
113     external: true
114   default:
115     driver: bridge
116     name: oam
117     enable_ipv6: true
118     ipam:
119       driver: default
120       config:
121       - subnet:  ${NETWORK_SUBNET_OAM_IPv6}
122         gateway: ${NETWORK_GATEWAY_OAM_IPv6}