YongchaoWu | 21f17bb | 2020-03-05 12:44:08 +0100 | [diff] [blame] | 1 | # ================================================================================== |
| 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 | # ================================================================================== |
BjornMagnussonXA | 575869c | 2020-09-14 21:28:54 +0200 | [diff] [blame] | 16 | version: '3' |
YongchaoWu | 21f17bb | 2020-03-05 12:44:08 +0100 | [diff] [blame] | 17 | |
| 18 | networks: |
| 19 | default: |
BjornMagnussonXA | 575869c | 2020-09-14 21:28:54 +0200 | [diff] [blame] | 20 | external: |
| 21 | name: ${DOCKER_SIM_NWNAME} |
YongchaoWu | 21f17bb | 2020-03-05 12:44:08 +0100 | [diff] [blame] | 22 | |
| 23 | services: |
| 24 | db: |
BjornMagnussonXA | 80a9200 | 2020-03-19 14:31:06 +0100 | [diff] [blame] | 25 | image: ${SDNC_DB_IMAGE} |
| 26 | container_name: ${SDNC_DB_APP_NAME} |
YongchaoWu | 21f17bb | 2020-03-05 12:44:08 +0100 | [diff] [blame] | 27 | 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" |
BjornMagnussonXA | be9a07f | 2021-02-25 10:51:46 +0100 | [diff] [blame] | 39 | labels: |
| 40 | - "nrttest_app=SDNC" |
| 41 | - "nrttest_dp=SDNC DB" |
YongchaoWu | 21f17bb | 2020-03-05 12:44:08 +0100 | [diff] [blame] | 42 | |
BjornMagnussonXA | e0b665e | 2021-01-08 22:19:18 +0100 | [diff] [blame] | 43 | a1controller: |
BjornMagnussonXA | 80a9200 | 2020-03-19 14:31:06 +0100 | [diff] [blame] | 44 | image: ${SDNC_A1_CONTROLLER_IMAGE} |
YongchaoWu | 21f17bb | 2020-03-05 12:44:08 +0100 | [diff] [blame] | 45 | depends_on : |
| 46 | - db |
BjornMagnussonXA | 80a9200 | 2020-03-19 14:31:06 +0100 | [diff] [blame] | 47 | container_name: ${SDNC_APP_NAME} |
YongchaoWu | 21f17bb | 2020-03-05 12:44:08 +0100 | [diff] [blame] | 48 | networks: |
| 49 | - default |
| 50 | entrypoint: ["/opt/onap/sdnc/bin/startODL.sh"] |
| 51 | ports: |
BjornMagnussonXA | 80a9200 | 2020-03-19 14:31:06 +0100 | [diff] [blame] | 52 | - ${SDNC_EXTERNAL_PORT}:${SDNC_INTERNAL_PORT} |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 53 | - ${SDNC_EXTERNAL_SECURE_PORT}:${SDNC_INTERNAL_SECURE_PORT} |
YongchaoWu | 21f17bb | 2020-03-05 12:44:08 +0100 | [diff] [blame] | 54 | links: |
| 55 | - db:dbhost |
| 56 | - db:sdnctldb01 |
| 57 | - db:sdnctldb02 |
| 58 | environment: |
| 59 | - MYSQL_ROOT_PASSWORD=openECOMP1.0 |
BjornMagnussonXA | f38e1e8 | 2020-10-11 23:05:02 +0200 | [diff] [blame] | 60 | - SDNC_DB_INIT=true |
YongchaoWu | 21f17bb | 2020-03-05 12:44:08 +0100 | [diff] [blame] | 61 | - SDNC_CONFIG_DIR=/opt/onap/sdnc/data/properties |
BjornMagnussonXA | 575869c | 2020-09-14 21:28:54 +0200 | [diff] [blame] | 62 | - A1_TRUSTSTORE_PASSWORD=${SDNC_A1_TRUSTSTORE_PASSWORD} |
BjornMagnussonXA | be9a07f | 2021-02-25 10:51:46 +0100 | [diff] [blame] | 63 | - ODL_ADMIN_USERNAME=${SDNC_USER} |
| 64 | - ODL_ADMIN_PASSWORD=${SDNC_PWD} |
YongchaoWu | 21f17bb | 2020-03-05 12:44:08 +0100 | [diff] [blame] | 65 | logging: |
| 66 | driver: "json-file" |
| 67 | options: |
| 68 | max-size: "30m" |
| 69 | max-file: "5" |
BjornMagnussonXA | be9a07f | 2021-02-25 10:51:46 +0100 | [diff] [blame] | 70 | labels: |
| 71 | - "nrttest_app=SDNC" |
| 72 | - "nrttest_dp=${SDNC_DISPLAY_NAME}" |