o1-netconf-controller
[oam.git] / distribution / nonrtric-o1-controller / src / main / yaml / docker-compose.yml
1 ################################################################################
2 # Copyright 2019 highstreet technologies and others
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.3"
17
18 services:
19   nonrt-o1:
20     image: ${NEXUS_DOCKER_REPO}${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG}
21     depends_on:
22       - sdnctldb01
23     container_name: nonrt_o1_controller
24     ports:
25       - "${PORTPREFIX}8181:8181"
26     links:
27       - sdnctldb01:dbhost
28     environment:
29       - SDNC_CONFIG_DIR=/opt/onap/ccsdk/data/properties
30       - ENABLE_ODL_CLUSTER=${ENABLE_ODL_CLUSTER}
31       - CCSDK_REPLICAS=${REPLICAS}
32       - DOMAIN=""
33     volumes:
34      - ${LOCAL_NONRTRIC_MOUNT}/nrtric-o1/logs:${ODL_HOME}/data/log
35     logging:
36       driver:   "json-file"
37       options:
38         max-size: "30m"
39         max-file: "5"
40   
41   sdnctldb01:
42     image: mysql/mysql-server:5.6
43     container_name: nonrt_o1_db
44     ports:
45       - "3306"
46     environment:
47       - MYSQL_ROOT_PASSWORD=openECOMP1.0
48       - MYSQL_ROOT_HOST=%
49     logging:       
50       driver:   "json-file"
51       options:  
52         max-size: "30m"
53         max-file: "5"
54