blob: 80f60f7c3788897e0bd506d9a8adfb4843b7390a [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:
BjornMagnussonXA575869c2020-09-14 21:28:54 +020020 external:
21 name: ${DOCKER_SIM_NWNAME}
YongchaoWu21f17bb2020-03-05 12:44:08 +010022
23services:
24 db:
BjornMagnussonXA80a92002020-03-19 14:31:06 +010025 image: ${SDNC_DB_IMAGE}
26 container_name: ${SDNC_DB_APP_NAME}
YongchaoWu21f17bb2020-03-05 12:44:08 +010027 networks:
28 - default
29 ports:
30 - "3306"
31 environment:
32 - MYSQL_ROOT_PASSWORD=openECOMP1.0
33 - MYSQL_ROOT_HOST=%
34 logging:
35 driver: "json-file"
36 options:
37 max-size: "30m"
38 max-file: "5"
39
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +010040 a1controller:
BjornMagnussonXA80a92002020-03-19 14:31:06 +010041 image: ${SDNC_A1_CONTROLLER_IMAGE}
YongchaoWu21f17bb2020-03-05 12:44:08 +010042 depends_on :
43 - db
BjornMagnussonXA80a92002020-03-19 14:31:06 +010044 container_name: ${SDNC_APP_NAME}
YongchaoWu21f17bb2020-03-05 12:44:08 +010045 networks:
46 - default
47 entrypoint: ["/opt/onap/sdnc/bin/startODL.sh"]
48 ports:
BjornMagnussonXA80a92002020-03-19 14:31:06 +010049 - ${SDNC_EXTERNAL_PORT}:${SDNC_INTERNAL_PORT}
BjornMagnussonXA70e878f2020-05-11 14:11:30 +020050 - ${SDNC_EXTERNAL_SECURE_PORT}:${SDNC_INTERNAL_SECURE_PORT}
YongchaoWu21f17bb2020-03-05 12:44:08 +010051 links:
52 - db:dbhost
53 - db:sdnctldb01
54 - db:sdnctldb02
55 environment:
56 - MYSQL_ROOT_PASSWORD=openECOMP1.0
BjornMagnussonXAf38e1e82020-10-11 23:05:02 +020057 - SDNC_DB_INIT=true
YongchaoWu21f17bb2020-03-05 12:44:08 +010058 - SDNC_CONFIG_DIR=/opt/onap/sdnc/data/properties
BjornMagnussonXA575869c2020-09-14 21:28:54 +020059 - A1_TRUSTSTORE_PASSWORD=${SDNC_A1_TRUSTSTORE_PASSWORD}
YongchaoWu21f17bb2020-03-05 12:44:08 +010060 logging:
61 driver: "json-file"
62 options:
63 max-size: "30m"
64 max-file: "5"
BjornMagnussonXAbbd2e9d2020-05-27 21:24:06 +020065