1b7fe1f48f178829e4292638fafc65637a6b025b
[cps.git] / csit / plans / cps / sdnc / docker-compose.yml
1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2021 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 version: '3'
18
19 services:
20   mariadb:
21     image: mariadb:10.1.11
22     ports:
23       - "3306:3306"
24     container_name: mariadb
25     environment:
26       - MYSQL_ROOT_PASSWORD=password
27     hostname:
28       mariadb.so.testlab.onap.org
29     logging:
30       driver: "json-file"
31       options:
32         max-size: "30m"
33         max-file: "5"
34   sdnc:
35     image: onap/sdnc-image:1.8.1
36     container_name: sdnc
37     volumes: 
38       - /etc/localtime:/etc/localtime:ro
39       - $SDNC_CERT_PATH:/opt/opendaylight/current/certs
40     entrypoint: ["/opt/onap/sdnc/bin/startODL.sh"]
41     ports:
42       - "8282:8181"
43     hostname:
44       sdnc
45     depends_on:
46       - mariadb
47     environment:
48       - MYSQL_ROOT_PASSWORD=password
49       - SDNC_CONFIG_DIR=/opt/onap/sdnc/data/properties
50       - MYSQL_PASSWD=password
51       - ODL_CERT_DIR=/opt/opendaylight/current/certs
52       - ODL_ADMIN_USERNAME=admin
53       - ODL_ADMIN_PASSWORD=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
54     dns:
55       - ${DNS_IP_ADDR-10.0.100.1}
56     logging:
57       driver:   "json-file"
58       options:
59         max-size: "30m"
60         max-file: "5"
61     extra_hosts:
62       - sdnctldb02:${LOCAL_IP}
63       - sdnctldb01:${LOCAL_IP}
64       - dbhost:${LOCAL_IP}