ecaiyanlinux | d202b53 | 2020-05-30 15:17:59 +0200 | [diff] [blame] | 1 | # Copyright (C) 2020 Nordix Foundation. All rights reserved. |
| 2 | # ======================================================================== |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | # ============LICENSE_END================================================= |
| 15 | # |
ecaiyanlinux | 4b0a0a2 | 2020-08-17 13:29:16 +0200 | [diff] [blame] | 16 | version: '3.5' |
| 17 | |
| 18 | networks: |
| 19 | default: |
| 20 | driver: bridge |
| 21 | name: nonrtric-docker-net |
| 22 | |
ecaiyanlinux | d202b53 | 2020-05-30 15:17:59 +0200 | [diff] [blame] | 23 | services: |
ecaiyanlinux | d202b53 | 2020-05-30 15:17:59 +0200 | [diff] [blame] | 24 | db: |
| 25 | image: mysql/mysql-server:5.6 |
| 26 | container_name: sdnc-db |
| 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" |
| 39 | |
| 40 | a1-controller: |
elinuxhenrik | 1fe0985 | 2020-07-27 13:06:03 +0200 | [diff] [blame] | 41 | image: nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-a1-controller:2.1.0 |
ecaiyanlinux | d202b53 | 2020-05-30 15:17:59 +0200 | [diff] [blame] | 42 | depends_on : |
| 43 | - db |
| 44 | container_name: a1-controller |
| 45 | networks: |
| 46 | - default |
| 47 | entrypoint: ["/opt/onap/sdnc/bin/startODL.sh"] |
| 48 | ports: |
| 49 | - 8282:8181 |
| 50 | - 8443:8443 |
| 51 | links: |
| 52 | - db:dbhost |
| 53 | - db:sdnctldb01 |
| 54 | - db:sdnctldb02 |
| 55 | environment: |
| 56 | - MYSQL_ROOT_PASSWORD=openECOMP1.0 |
| 57 | - SDNC_CONFIG_DIR=/opt/onap/sdnc/data/properties |
RehanRaza | a9a369f | 2020-06-29 12:06:17 +0200 | [diff] [blame] | 58 | # For using own certs instead of the default ones (built into the container), |
| 59 | # place them in config/ directory, update the https-props-a1controller.properties file, and uncomment the following lines |
| 60 | #volumes: |
RehanRaza | 7f685c3 | 2021-01-18 14:49:27 +0100 | [diff] [blame^] | 61 | # - ./sdnc/config/keystore-a1controller.jks:/etc/ssl/certs/java/keystore.jks:ro |
| 62 | # - ./sdnc/config/truststore-a1controller.jks:/etc/ssl/certs/java/truststore.jks:ro |
| 63 | # - ./sdnc/config/https-props-a1controller.properties:/opt/onap/sdnc/data/properties/https-props.properties:ro |
ecaiyanlinux | d202b53 | 2020-05-30 15:17:59 +0200 | [diff] [blame] | 64 | logging: |
| 65 | driver: "json-file" |
| 66 | options: |
| 67 | max-size: "30m" |
| 68 | max-file: "5" |