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