Adding docker-compose for setting up ICS version
[nonrtric/rapp/ransliceassurance.git] / docker-compose / icsversion / docker-compose.yaml
1 #  Copyright (C) 2021 Nordix Foundation. All rights reserved.
2 #  ========================================================================
3 #  Licensed under the Apache License, Version 2.0 (the "License");
4 #  you may not use this file except in compliance with the License.
5 #  You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #  Unless required by applicable law or agreed to in writing, software
10 #  distributed under the License is distributed on an "AS IS" BASIS,
11 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #  See the License for the specific language governing permissions and
13 #  limitations under the License.
14 #  ============LICENSE_END=================================================
15 #
16 version: '3'
17
18 networks:
19   nonrtric:
20     driver: bridge
21   oam:
22     external: true
23   smo:
24     external: true
25
26 services:
27   nonrtric-control-panel:
28     image: "${CONTROL_PANEL_IMAGE_BASE}:${CONTROL_PANEL_IMAGE_TAG}"
29     container_name: nonrtric-control-panel
30     networks:
31       - default
32       - smo
33     ports:
34       - 8182:8080
35       - 8082:8082
36     volumes:
37       - ./config/control-panel/nginx.conf:/etc/nginx/nginx.conf:ro
38
39   nonrtric-gateway:
40     image: "${NONRTRIC_GATEWAY_IMAGE_BASE}:${NONRTRIC_GATEWAY_IMAGE_TAG}"
41     container_name: nonrtric-gateway
42     networks:
43       - default
44       - smo
45     ports:
46       - 9090:9090
47     volumes:
48       - ./config/nonrtric-gateway/application-nonrtricgateway.yaml:/opt/app/nonrtric-gateway/config/application.yaml:ro
49
50   ics:
51     image: "${ICS_IMAGE_BASE}:${ICS_IMAGE_TAG}"
52     container_name: ics
53     networks:
54       - default
55       - smo
56     ports:
57       - 8083:8083
58       - 8434:8434
59
60   dmaap-adaptor-service:
61     image: "${DMAAP_ADAPTOR_JAVA_BASE}:${DMAAP_ADAPTOR_JAVA_TAG}"
62     container_name: dmaap-adaptor-service
63     networks:
64       - default
65       - smo
66     ports:
67       - 8084:8084
68       - 8435:8435
69     volumes:
70       - ./config/dmaap-adaptor-java/application.yaml:/opt/app/dmaap-adaptor-service/config/application.yaml:ro
71       - ./config/dmaap-adaptor-java/application_configuration.json:/opt/app/dmaap-adaptor-service/data/application_configuration.json:ro
72   
73   dmaap-mediator-service:
74     image: "${DMAAP_MEDIATOR_GO_BASE}:${DMAAP_MEDIATOR_GO_TAG}"
75     container_name: dmaap-mediator-service
76     networks:
77       - default
78       - smo
79     ports:
80       - 8085:8085
81       - 8436:8436
82     environment:
83       - INFO_PRODUCER_HOST=http://dmaap-mediator-service
84       - INFO_PRODUCER_PORT=8085
85       - INFO_COORD_ADDR=http://ics:8083
86       - DMAAP_MR_ADDR=http://onap-dmaap:3904
87       - PRODUCER_CERT_PATH=security/producer.crt
88       - PRODUCER_KEY_PATH=security/producer.key
89       - KAFKA_BOOTSTRAP_SERVERS=http://kafka:9092
90       - LOG_LEVEL=Debug
91     volumes:
92     - ./config/dmaap-mediator-producer/type_config.json:/configs/type_config.json
93
94   oru-app:
95     image: "${ORU_APP_IMAGE_BASE}:${ORU_APP_IMAGE_TAG}"
96     container_name: oru-app
97     networks:
98       - default
99       - oam
100       - smo
101     ports:
102       - 8086:8086
103     environment:
104       - CONSUMER_HOST=http://oru-app
105       - CONSUMER_PORT=8086
106       - INFO_COORD_ADDR=http://ics:8083
107       - SDNR_ADDR=http://sdnr:8181
108       - CONSUMER_CERT_PATH=security/consumer.crt
109       - CONSUMER_KEY_PATH=security/consumer.key
110       - LOG_LEVEL=Debug
111     volumes:
112       - ./config/oru-app/o-ru-to-o-du-map.txt:/usr/src/app/o-ru-to-o-du-map.txt:ro
113
114   odu-app:
115     image: "${ODU_APP_IMAGE_BASE}:${ODU_APP_IMAGE_TAG}"
116     container_name: odu-app
117     networks:
118       - default
119       - oam
120       - smo
121     ports:
122       - 8095:8095
123     environment:
124       - SDNR_USER=admin
125       - SDNR_PASSWORD=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
126       - CONSUMER_HOST=http://odu-app
127       - CONSUMER_PORT=8095
128       - INFO_COORD_ADDR=http://ics:8083
129       - SDNR_ADDR=http://sdnr:8181
130       - LOG_LEVEL=Debug