Merge "Added CSIT for Macroflow with HEAT"
[integration/csit.git] / plans / ccsdk-oran / polmansuite / sdnc / docker-compose.yml
1 #  Copyright (C) 2021 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 #
16 version: '3'
17
18 networks:
19   default:
20     driver: bridge
21
22 services:
23   db:
24     image: mysql/mysql-server:5.6
25     container_name: sdnc-db
26     networks:
27       - default
28     ports:
29       - "3306"
30     environment:
31       - MYSQL_ROOT_PASSWORD=openECOMP1.0
32       - MYSQL_ROOT_HOST=%
33     logging:
34       driver:   "json-file"
35       options:
36         max-size: "30m"
37         max-file: "5"
38
39   a1-controller:
40     image: onap/sdnc-image:2.1.0
41     depends_on :
42       - db
43     container_name: a1-controller
44     networks:
45       - default
46     entrypoint: ["/opt/onap/sdnc/bin/startODL.sh"]
47     ports:
48       - 8282:8181
49       - 8443:8443
50     links:
51       - db:dbhost
52       - db:sdnctldb01
53       - db:sdnctldb02
54     environment:
55       - MYSQL_ROOT_PASSWORD=openECOMP1.0
56       - SDNC_DB_INIT=true
57       - SDNC_CONFIG_DIR=/opt/onap/sdnc/data/properties
58       - A1_TRUSTSTORE_PASSWORD=a1adapter
59     # For using own certs instead of the default ones (built into the container),
60     # place them in config/ directory, update the https-props-a1controller.properties file, and uncomment the following lines
61     #volumes:
62     #  - ./sdnc/config/keystore-a1controller.jks:/etc/ssl/certs/java/keystore.jks:ro
63     #  - ./sdnc/config/truststore-a1controller.jks:/etc/ssl/certs/java/truststore.jks:ro
64     #  - ./sdnc/config/https-props-a1controller.properties:/opt/onap/sdnc/data/properties/https-props.properties:ro
65     logging:
66       driver:   "json-file"
67       options:
68         max-size: "30m"
69         max-file: "5"