blob: 505a54cc850a8c06138b49cefc596756d2561b16 [file] [log] [blame]
YongchaoWu21f17bb2020-03-05 12:44:08 +01001# ==================================================================================
2# Modifications Copyright (c) 2019 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# ==================================================================================
BjornMagnussonXA575869c2020-09-14 21:28:54 +020016version: '3'
YongchaoWu21f17bb2020-03-05 12:44:08 +010017
18networks:
19 default:
BjornMagnussonXA51f04f02021-11-23 09:22:35 +010020 external: true
21 name: ${DOCKER_SIM_NWNAME}
YongchaoWu21f17bb2020-03-05 12:44:08 +010022services:
23 db:
BjornMagnussonXA80a92002020-03-19 14:31:06 +010024 image: ${SDNC_DB_IMAGE}
25 container_name: ${SDNC_DB_APP_NAME}
YongchaoWu21f17bb2020-03-05 12:44:08 +010026 networks:
27 - default
28 ports:
29 - "3306"
30 environment:
31 - MYSQL_ROOT_PASSWORD=openECOMP1.0
32 - MYSQL_ROOT_HOST=%
33 logging:
34 driver: "json-file"
35 options:
36 max-size: "30m"
37 max-file: "5"
BjornMagnussonXAbe9a07f2021-02-25 10:51:46 +010038 labels:
39 - "nrttest_app=SDNC"
40 - "nrttest_dp=SDNC DB"
YongchaoWu21f17bb2020-03-05 12:44:08 +010041
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +010042 a1controller:
BjornMagnussonXA80a92002020-03-19 14:31:06 +010043 image: ${SDNC_A1_CONTROLLER_IMAGE}
YongchaoWu21f17bb2020-03-05 12:44:08 +010044 depends_on :
45 - db
BjornMagnussonXA80a92002020-03-19 14:31:06 +010046 container_name: ${SDNC_APP_NAME}
YongchaoWu21f17bb2020-03-05 12:44:08 +010047 networks:
48 - default
49 entrypoint: ["/opt/onap/sdnc/bin/startODL.sh"]
50 ports:
BjornMagnussonXA80a92002020-03-19 14:31:06 +010051 - ${SDNC_EXTERNAL_PORT}:${SDNC_INTERNAL_PORT}
BjornMagnussonXA70e878f2020-05-11 14:11:30 +020052 - ${SDNC_EXTERNAL_SECURE_PORT}:${SDNC_INTERNAL_SECURE_PORT}
YongchaoWu21f17bb2020-03-05 12:44:08 +010053 links:
54 - db:dbhost
55 - db:sdnctldb01
56 - db:sdnctldb02
57 environment:
58 - MYSQL_ROOT_PASSWORD=openECOMP1.0
BjornMagnussonXAf38e1e82020-10-11 23:05:02 +020059 - SDNC_DB_INIT=true
YongchaoWu21f17bb2020-03-05 12:44:08 +010060 - SDNC_CONFIG_DIR=/opt/onap/sdnc/data/properties
BjornMagnussonXA575869c2020-09-14 21:28:54 +020061 - A1_TRUSTSTORE_PASSWORD=${SDNC_A1_TRUSTSTORE_PASSWORD}
BjornMagnussonXAbe9a07f2021-02-25 10:51:46 +010062 - ODL_ADMIN_USERNAME=${SDNC_USER}
63 - ODL_ADMIN_PASSWORD=${SDNC_PWD}
YongchaoWu21f17bb2020-03-05 12:44:08 +010064 logging:
65 driver: "json-file"
66 options:
67 max-size: "30m"
68 max-file: "5"
BjornMagnussonXAbe9a07f2021-02-25 10:51:46 +010069 labels:
70 - "nrttest_app=SDNC"
71 - "nrttest_dp=${SDNC_DISPLAY_NAME}"