Fix licensing issues
[nonrtric.git] / sdnc-a1-controller / oam / installation / src / main / yaml / docker-compose.yml
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: '2.1'
17
18 networks:
19   default:
20     driver: bridge
21     name: nonrtric-docker-net
22
23 services:
24   db:
25     image: mysql/mysql-server:5.6
26     container_name: sdnc_db_container
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:
41     image: nonrtric-a1-controller:latest
42     depends_on :
43       - db
44     container_name: a1-controller-container
45     networks:
46       - default
47     entrypoint: ["/opt/onap/sdnc/bin/startODL.sh"]
48     ports:
49       - "8282:8181"
50     links:
51       - db:dbhost
52       - db:sdnctldb01
53       - db:sdnctldb02
54     environment:
55       - MYSQL_ROOT_PASSWORD=openECOMP1.0
56       - SDNC_CONFIG_DIR=/opt/onap/sdnc/data/properties
57     dns:
58       - ${DNS_IP_ADDR-10.0.100.1}
59     logging:
60       driver:   "json-file"
61       options:
62         max-size: "30m"
63         max-file: "5"
64     extra_hosts:
65         aaf.osaaf.org: 10.12.6.214