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