Add new testcase for network slicing capacity in slice-analysis-ms
[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 #     ==============================================================================
6 #       Licensed under the Apache License, Version 2.0 (the "License");
7 #       you may not use this file except in compliance with the License.
8 #       You may obtain a copy of the License at
9 #
10 #            http://www.apache.org/licenses/LICENSE-2.0
11 #
12 #       Unless required by applicable law or agreed to in writing, software
13 #       distributed under the License is distributed on an "AS IS" BASIS,
14 #       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 #       See the License for the specific language governing permissions and
16 #       limitations under the License.
17 #     ============LICENSE_END=========================================================
18
19 version: '3.3'
20 networks:
21   slice-analysis-ms-default:
22     driver: bridge
23     driver_opts:
24       com.docker.network.driver.mtu: 1400
25 services: 
26   zookeeper:
27     image: wurstmeister/zookeeper
28     container_name: zookeeper
29     ports:
30       - "2181:2181"
31     networks:
32       - slice-analysis-ms-default
33   kafka:
34     image: wurstmeister/kafka
35     container_name: kafka
36     ports:
37       - "9092:9092"
38     environment:
39       KAFKA_ADVERTISED_HOST_NAME: "kafka"
40       KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
41       KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
42       KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://kafka:9092"
43     volumes:
44       - /var/run/docker.sock:/var/run/docker.sock
45     depends_on:
46       - zookeeper
47     networks:
48       - slice-analysis-ms-default
49   dmaap:
50     image: nexus3.onap.org:10001/onap/dmaap/dmaap-mr:1.1.8
51     container_name: dmaap
52     ports:
53       - "3904:3904"
54       - "3905:3905"
55     volumes:
56       - ./config/dmaap/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
57     depends_on:
58       - zookeeper
59       - kafka
60     networks:
61       - slice-analysis-ms-default
62   postgres:
63     image: 'postgres:12-alpine'
64     container_name: slice-analysis-ms-postgres
65     hostname: postgres
66     environment:
67      - POSTGRES_USER=sliceanalysisms_admin
68      - POSTGRES_PASSWORD=postgres
69      - POSTGRES_DB=sliceanalysisms
70     ports:
71      - 5432
72     healthcheck:
73       test: ["CMD", "nc", "-z", "localhost", "5432"]
74       interval: 30s
75       timeout: 10s
76       retries: 5
77     networks:
78      - slice-analysis-ms-default
79   sliceanalysisms:
80     image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.components.slice-analysis-ms:1.0.7
81     container_name: sliceanalysisms
82     hostname: sliceanalysisms
83     environment:
84      - STANDALONE=true
85      - CONFIG_FILE=/etc/config_all.json
86     ports:
87      - "8080:8080"
88     volumes:
89      - ./config/sliceanalysisms/config_all.json:/etc/config_all.json
90     depends_on:
91      - postgres
92     networks:
93      - slice-analysis-ms-default    
94