Initial delivery of helm charts to deploy mod2 components. Resolved all
[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           - POLICYMODEL_DEV_SERVER=${POLICYMODEL_DEV_SERVER}
51           - POLICYMODEL_DEV_PORT=${POLICYMODEL_DEV_PORT}
52           - POLICYMODEL_DEV_USER=${POLICYMODEL_DEV_USER}
53           - POLICYMODEL_DEV_PASSWORD=${POLICYMODEL_DEV_PASSWORD}
54           - DCAE_PLATFORM_DEV_SERVER=${DCAE_PLATFORM_DEV_SERVER}
55           - DCAE_PLATFORM_DEV_PORT=${DCAE_PLATFORM__DEV_PORT}
56           - DCAE_PLATFORM_DEV_USER=${DCAE_PLATFORM_DEV_USER}
57           - DCAE_PLATFORM_DEV_PASSWORD=${DCAE_PLATFORM_DEV_PASSWORD}      
58     ports:
59       - 31001:8080
60     links:
61       - mongo_db
62     depends_on:
63       - mongo_db
64     restart: always
65   mod_auth_service:
66     image: 'nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.mod.auth-service:latest'
67     container_name: mod_auth_service
68     ports:
69       - 31003:8082
70     links:
71       - mongo_db
72     depends_on:
73       - mongo_db
74     restart: always
75