optimize size and time using "--no-cache-dir"
[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: mariadb:10.4.3
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   ansible:
44     image: onap/ccsdk-ansible-server-image:latest
45     depends_on :
46       - db
47     container_name: appc_ansible_container
48     entrypoint: ["/opt/onap/ccsdk/startAnsibleServer.sh"]
49     ports:
50       - "8000"
51     links:
52       - db:dbhost
53       - db:sdnctldb01
54       - db:sdnctldb02
55     environment:
56       - MYSQL_ROOT_PASSWORD=openECOMP1.0
57     logging:
58       driver:   "json-file"
59       options:
60         max-size: "30m"
61         max-file: "5"
62
63
64 # Tweaking SDNC_CONFIG_DIR temporarily from ../sdnc/.. to ../appc/.. since it may be needed in this script
65 #    to map to SDN-C AAI Service Bundle's AAI Activator class inside the gerrit sdnc/adaptors repo, so that
66 #    the AAI Service bundle loads APP-C's aaiclient.properties instead of SDN-C's aaiclient.properties.
67   appc:
68     image: "onap/appc-image:latest"
69     depends_on :
70       - db
71       - ansible
72     container_name: appc_controller_container
73     entrypoint: ["/opt/onap/appc/bin/startODL.sh"]
74     ports:
75       - "8443:8443"
76       - "8282:8181"
77       - "1830:1830"
78       - "9090:9191"
79       - "30290:9191"
80     links:
81       - db:dbhost
82       - db:sdnctldb01
83       - db:sdnctldb02
84       - ansible:ansiblehost
85     environment:
86       - MYSQL_ROOT_PASSWORD=openECOMP1.0
87       - SDNC_CONFIG_DIR=/opt/onap/appc/data/properties
88       - APPC_CONFIG_DIR=/opt/onap/appc/data/properties
89       - DMAAP_TOPIC_ENV=SUCCESS
90     logging:
91       driver: "json-file"
92       options:
93         max-size: "30m"
94         max-file: "5"
95
96
97   dgbuilder:
98     image: "onap/ccsdk-dgbuilder-image:latest"
99     depends_on:
100       - db
101     container_name: ccsdk_dgbuilder_container
102     entrypoint:
103        - "/bin/bash"
104        - "-c"
105        - "cd /opt/onap/ccsdk/dgbuilder/ && ./start.sh sdnc1.0 && wait"
106     ports:
107       - "3000:3100"
108     links:
109       - db:dbhost
110       - db:sdnctldb01
111       - db:sdnctldb02
112       - appc:sdnhost
113     environment:
114       - MYSQL_ROOT_PASSWORD=openECOMP1.0
115       - SDNC_CONFIG_DIR=/opt/onap/ccsdk/data/properties
116     logging:
117       driver: "json-file"
118       options:
119         max-size: "30m"
120         max-file: "5"
121
122   cdt:
123     image: "onap/appc-cdt-image:latest"
124     depends_on:
125       - db
126     container_name: appc_cdt_container
127     entrypoint:
128        - "/opt/startCdt.sh"
129     ports:
130       - "8080:18080"
131     links:
132       - appc:sdnhost
133     environment:
134       - MYSQL_ROOT_PASSWORD=openECOMP1.0
135       - CDT_PORT=9090
136     logging:
137       driver: "json-file"
138       options:
139         max-size: "30m"
140         max-file: "5"
141