BjornMagnussonXA | be9a07f | 2021-02-25 10:51:46 +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 | 663566c | 2021-11-08 10:25:07 +0100 | [diff] [blame] | 16 | version: '3.0' |
BjornMagnussonXA | be9a07f | 2021-02-25 10:51:46 +0100 | [diff] [blame] | 17 | |
| 18 | networks: |
| 19 | default: |
BjornMagnussonXA | 51f04f0 | 2021-11-23 09:22:35 +0100 | [diff] [blame^] | 20 | external: true |
| 21 | name: ${DOCKER_SIM_NWNAME} |
BjornMagnussonXA | be9a07f | 2021-02-25 10:51:46 +0100 | [diff] [blame] | 22 | services: |
| 23 | db: |
| 24 | image: ${SDNC_DB_IMAGE} |
| 25 | container_name: ${SDNC_DB_APP_NAME} |
| 26 | networks: |
| 27 | - default |
| 28 | ports: |
| 29 | - "3306" |
| 30 | environment: |
| 31 | - MYSQL_ROOT_PASSWORD=itsASecret |
| 32 | - MYSQL_ROOT_HOST=% |
| 33 | - MYSQL_USER=sdnctl |
| 34 | - MYSQL_PASSWORD=gamma |
| 35 | - MYSQL_DATABASE=sdnctl |
| 36 | logging: |
| 37 | driver: "json-file" |
| 38 | options: |
| 39 | max-size: "30m" |
| 40 | max-file: "5" |
| 41 | labels: |
| 42 | - "nrttest_app=SDNC" |
| 43 | - "nrttest_dp=SDNC DB" |
| 44 | |
| 45 | a1controller: |
| 46 | image: ${SDNC_A1_CONTROLLER_IMAGE} |
| 47 | depends_on : |
| 48 | - db |
| 49 | container_name: ${SDNC_APP_NAME} |
| 50 | networks: |
| 51 | - default |
| 52 | entrypoint: ["/opt/onap/sdnc/bin/startODL.sh"] |
| 53 | ports: |
| 54 | - ${SDNC_EXTERNAL_PORT}:${SDNC_INTERNAL_PORT} |
| 55 | - ${SDNC_EXTERNAL_SECURE_PORT}:${SDNC_INTERNAL_SECURE_PORT} |
| 56 | links: |
| 57 | - db:dbhost |
| 58 | - db:sdnctldb01 |
| 59 | - db:sdnctldb02 |
| 60 | environment: |
| 61 | - MYSQL_ROOT_PASSWORD=itsASecret |
| 62 | - MYSQL_USER=sdnctl |
| 63 | - MYSQL_PASSWORD=gamma |
| 64 | - MYSQL_DATABASE=sdnctl |
| 65 | - SDNC_CONFIG_DIR=/opt/onap/sdnc/data/properties |
| 66 | - SDNC_BIN=/opt/onap/sdnc/bin |
| 67 | - ODL_CERT_DIR=/tmp |
| 68 | - ODL_ADMIN_USERNAME=${SDNC_USER} |
| 69 | - ODL_ADMIN_PASSWORD=${SDNC_PWD} |
| 70 | - ODL_USER=${SDNC_USER} |
| 71 | - ODL_PASSWORD=${SDNC_PWD} |
| 72 | - SDNC_DB_INIT=true |
| 73 | - A1_TRUSTSTORE_PASSWORD=${SDNC_A1_TRUSTSTORE_PASSWORD} |
| 74 | - AAI_TRUSTSTORE_PASSWORD=changeit |
| 75 | logging: |
| 76 | driver: "json-file" |
| 77 | options: |
| 78 | max-size: "30m" |
| 79 | max-file: "5" |
| 80 | labels: |
| 81 | - "nrttest_app=SDNC" |
| 82 | - "nrttest_dp=${SDNC_DISPLAY_NAME}" |