Add cdtproxy to docker install
[appc/deployment.git] / docker-compose / docker-compose.yml
1 # ============LICENSE_START==========================================
2 # ONAP : APPC
3 # ===================================================================
4 # Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
5 # ===================================================================
6 #
7 # Unless otherwise specified, all software contained herein is licensed
8 # under the Apache License, Version 2.0 (the License);
9 # you may not use this software except in compliance with the License.
10 # You may obtain a copy of the License at
11 #
12 #    http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 #
20 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
21 # ============LICENSE_END============================================
22 version: '2'
23
24 networks:
25   default:
26     driver: bridge
27
28 services:
29   db:
30     image: mysql/mysql-server:5.6
31     container_name: sdnc_db_container
32     ports:
33       - "3306"
34     environment:
35       - MYSQL_ROOT_PASSWORD=openECOMP1.0
36       - MYSQL_ROOT_HOST=%
37     logging:
38       driver: "json-file"
39       options:  
40         max-size: "30m"
41         max-file: "5"
42
43 # Tweaking SDNC_CONFIG_DIR temporarily from ../sdnc/.. to ../appc/.. since it may be needed in this script
44 #    to map to SDN-C AAI Service Bundle's AAI Activator class inside the gerrit sdnc/adaptors repo, so that
45 #    the AAI Service bundle loads APP-C's aaiclient.properties instead of SDN-C's aaiclient.properties.
46   appc:
47     image: "onap/appc-image:latest"
48     depends_on :
49       - db
50     container_name: appc_controller_container
51     entrypoint: ["/opt/onap/appc/bin/startODL.sh"]
52     ports:
53       - "8282:8181"
54       - "1830:1830"
55       - "9090:9191"
56     links:
57       - db:dbhost
58       - db:sdnctldb01
59       - db:sdnctldb02
60     environment:
61       - MYSQL_ROOT_PASSWORD=openECOMP1.0
62       - SDNC_CONFIG_DIR=/opt/onap/appc/data/properties
63       - APPC_CONFIG_DIR=/opt/onap/appc/data/properties
64       - DMAAP_TOPIC_ENV=SUCCESS
65     logging:
66       driver: "json-file"
67       options:
68         max-size: "30m"
69         max-file: "5"
70
71
72   dgbuilder:
73     image: "onap/ccsdk-dgbuilder-image:latest"
74     depends_on:
75       - db
76     container_name: ccsdk_dgbuilder_container
77     entrypoint:
78        - "/bin/bash"
79        - "-c"
80        - "cd /opt/onap/ccsdk/dgbuilder/ && ./start.sh sdnc1.0 && wait"
81     ports:
82       - "3000:3100"
83     links:
84       - db:dbhost
85       - db:sdnctldb01
86       - db:sdnctldb02
87       - appc:sdnhost
88     environment:
89       - MYSQL_ROOT_PASSWORD=openECOMP1.0
90       - SDNC_CONFIG_DIR=/opt/onap/ccsdk/data/properties
91     logging:
92       driver: "json-file"
93       options:
94         max-size: "30m"
95         max-file: "5"
96
97   cdt:
98     image: "onap/appc-cdt-image:latest"
99     depends_on:
100       - db
101     container_name: appc_cdt_container
102     entrypoint:
103        - "/bin/bash"
104        - "-c"
105        - "cd /usr/local/apache2/ && /usr/local/apache2/bin/httpd -D FOREGROUND && wait"
106     ports:
107       - "8080:80"
108     links:
109       - appc:sdnhost
110     environment:
111       - MYSQL_ROOT_PASSWORD=openECOMP1.0
112     logging:
113       driver: "json-file"
114       options:
115         max-size: "30m"
116         max-file: "5"
117