[DCAEGEN2-SLICEANALYSISMS] Add new robot for CCVPN/IBN closed-loop functionality...
[integration/csit.git] / plans / dcaegen2-services-slice-analysis-ms / testsuites / docker-compose.yaml
1 #    ============LICENSE_START=======================================================
2 #    slice-analysis-ms
3 #    ================================================================================
4 #     Copyright (C) 2020 Wipro Limited.
5 #     Copyright (C) 2022 Huawei Canada Limited.
6 #     ==============================================================================
7 #       Licensed under the Apache License, Version 2.0 (the "License");
8 #       you may not use this file except in compliance with the License.
9 #       You may obtain a copy of the License at
10 #
11 #            http://www.apache.org/licenses/LICENSE-2.0
12 #
13 #       Unless required by applicable law or agreed to in writing, software
14 #       distributed under the License is distributed on an "AS IS" BASIS,
15 #       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 #       See the License for the specific language governing permissions and
17 #       limitations under the License.
18 #     ============LICENSE_END=========================================================
19
20 version: '3.3'
21 networks:
22   slice-analysis-ms-default:
23     driver: bridge
24     driver_opts:
25       com.docker.network.driver.mtu: 1400
26 services: 
27   zookeeper:
28     image: wurstmeister/zookeeper
29     container_name: zookeeper
30     ports:
31       - "2181:2181"
32     networks:
33       - slice-analysis-ms-default
34   kafka:
35     image: wurstmeister/kafka
36     container_name: kafka
37     ports:
38       - "9092:9092"
39     environment:
40       KAFKA_ADVERTISED_HOST_NAME: "kafka"
41       KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
42       KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
43       KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://kafka:9092"
44     volumes:
45       - /var/run/docker.sock:/var/run/docker.sock
46     depends_on:
47       - zookeeper
48     networks:
49       - slice-analysis-ms-default
50   dmaap:
51     image: nexus3.onap.org:10001/onap/dmaap/dmaap-mr:1.1.8
52     container_name: dmaap
53     hostname: dmaap
54     ports:
55       - "3904:3904"
56       - "3905:3905"
57     volumes:
58       - ./config/dmaap/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
59     depends_on:
60       - zookeeper
61       - kafka
62     networks:
63       - slice-analysis-ms-default
64   postgres:
65     image: 'postgres:12-alpine'
66     container_name: slice-analysis-ms-postgres
67     hostname: postgres
68     environment:
69      - POSTGRES_USER=sliceanalysisms_admin
70      - POSTGRES_PASSWORD=postgres
71      - POSTGRES_DB=sliceanalysisms
72     ports:
73      - 5432
74     healthcheck:
75       test: ["CMD", "nc", "-z", "localhost", "5432"]
76       interval: 30s
77       timeout: 10s
78       retries: 5
79     networks:
80      - slice-analysis-ms-default
81   vescollector:
82     image: 'nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:1.11.0'
83     container_name: vescollector
84     hostname: vescollector
85     ports:
86       - "8444:8443"
87     volumes:
88       - ./config/vescollector/etc:/etc
89       - ./config/vescollector/app-config:/app-config
90       - ./config/vescollector/dcae-certificate:/opt/app/dcae-certificate
91     depends_on:
92       - dmaap
93     networks:
94       - slice-analysis-ms-default
95   sliceanalysisms:
96     image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.components.slice-analysis-ms:latest
97     container_name: sliceanalysisms
98     hostname: sliceanalysisms
99     environment:
100      - STANDALONE=true
101      - CONFIG_FILE=/etc/config_all.json
102     ports:
103      - "8080:8080"
104     volumes:
105      - ./config/sliceanalysisms/config_all.json:/etc/config_all.json
106     depends_on:
107      - postgres
108     networks:
109      - slice-analysis-ms-default
110