Remove ALL Docker File Versions
[cps.git] / csit / plans / cps / sdnc / docker-compose.yml
1 # ============LICENSE_START=======================================================
2 # Modifications Copyright (C) 2022 Nordix Foundation
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 # ============LICENSE_END=========================================================
16
17 services:
18   mariadb:
19     image: mariadb:10.5
20     ports:
21       - "3306:3306"
22     environment:
23       - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-password}
24       - MYSQL_ROOT_HOST=%
25       - MYSQL_USER=${MYSQL_USER:-sdnc}
26       - MYSQL_PASSWORD=${MYSQL_PASSWORD:-password}
27       - MYSQL_DATABASE=${MYSQL_DATABASE:-sdncdb}
28     logging:
29       driver: "json-file"
30       options:
31         max-size: "30m"
32         max-file: "5"
33
34   sdnc:
35     image: onap/sdnc-image:${VERSION:-2.2.3}
36     container_name: sdnc
37     depends_on :
38       - mariadb
39     entrypoint: ["/opt/onap/sdnc/bin/startODL.sh"]
40     ports:
41       - "8282:8181"
42     hostname:
43       sdnc
44     links:
45       - mariadb:dbhost
46       - mariadb:sdnctldb01
47       - mariadb:sdnctldb02
48     environment:
49       - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-password}
50       - MYSQL_USER=${MYSQL_USER:-sdnc}
51       - MYSQL_PASSWORD=${MYSQL_PASSWORD:-password}
52       - MYSQL_DATABASE=${MYSQL_DATABASE:-sdncdb}
53       - SDNC_CONFIG_DIR=/opt/onap/sdnc/data/properties
54       - SDNC_BIN=/opt/onap/sdnc/bin
55       - ODL_CERT_DIR=/opt/opendaylight/certs
56       - ODL_ADMIN_USERNAME=${ODL_USER:-admin}
57       - ODL_ADMIN_PASSWORD=${ODL_PASSWORD:-Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U}
58       - SDNC_DB_INIT=true
59       - SQL_CRYPTKEY=${SQL_CRYPTKEY:-fakECryptKey}
60
61     volumes:
62       - ./certs/certs.properties:/opt/opendaylight/certs/certs.properties
63       - ./certs/keys0.zip:/opt/opendaylight/certs/keys0.zip
64
65     dns:
66       - ${DNS_IP_ADDR-10.0.100.1}
67     logging:
68       driver: "json-file"
69       options:
70         max-size: "30m"
71         max-file: "5"