f421e19ef8c40f7bacc450a44236b5a631866408
[dcaegen2/platform.git] / mod2 / assembly / docker-compose.yml
1 #
2 # /*
3 #  * ============LICENSE_START=======================================================
4 #  *  org.onap.dcae
5 #  *  ================================================================================
6 #  *  Copyright (c) 2020 AT&T Intellectual Property. All rights reserved.
7 #  *  ================================================================================
8 #  *  Licensed under the Apache License, Version 2.0 (the "License");
9 #  *  you may not use this file 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 #  *  ============LICENSE_END=========================================================
20 #  */
21 #
22 version: '3.3'
23 services:
24   mongo_db:
25     image: 'registry.hub.docker.com/library/mongo:4.0.8'
26     container_name: mongo_db
27     environment:
28       - DCAE_HOSTNAME=${DCAE_HOSTNAME}
29     volumes:
30       - type: 'bind'
31         source: '/home/ubuntu/mongo/mongo_db/data'
32         target: '/data/db'
33     ports:
34       - 27017:27017
35     restart: always 
36   dcae_mod_ui:
37     image: 'nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.mod.ui:latest'
38     container_name: mod_ui
39     environment:
40       - DCAE_HOSTNAME=${DCAE_HOSTNAME} 
41     ports:
42       - 30997:4200
43     depends_on:
44       - mod_catalog_service
45     restart: always
46   mod_catalog_service:
47     image: 'nexus3.onap.org:10003/onap/org.onap.dcaegen2.platform.mod.catalog-service:latest'
48     container_name: mod_catalog_service
49         environment:
50           - DEV_SERVER=${DEV_SERVER}
51           - DEV_PORT=${DEV_PORT}
52           - DEV_USER=${DEV_USER}
53           - DEV_PASSWORD=${DEV_PASSWORD}          
54     ports:
55       - 31001:8080
56     links:
57       - mongo_db
58     depends_on:
59       - mongo_db
60     restart: always
61   mod_auth_service:
62     image: 'nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.mod.auth-service:latest'
63     container_name: mod_auth_service
64     ports:
65       - 31003:8082
66     links:
67       - mongo_db
68     depends_on:
69       - mongo_db
70     restart: always
71