Add CPS & AAI components in slice-analysis-ms csit
[integration/csit.git] / scripts / dcaegen2-services-slice-analysis-ms / slice-analysis-ms / cps-aai / docker-compose.yaml
1 #    ============LICENSE_START=======================================================
2 #    cps-tdmt
3 #    ================================================================================
4 #     Copyright (C) 2021 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   testsuites_slice-analysis-ms-default:
22     external: true
23 services:
24   cps-and-ncmp:
25     container_name: cps-and-ncmp
26     hostname: cps-and-ncmp
27     image: ${DOCKER_REPO:-nexus3.onap.org:10003}/onap/cps-and-ncmp:${VERSION:-latest}
28     ports:
29       - "8883:8080"
30       - "8887:8081"
31     networks:
32       - testsuites_slice-analysis-ms-default
33     environment:
34       CPS_USERNAME: ${CPS_USERNAME:-cpsuser}
35       CPS_PASSWORD: ${CPS_PASSWORD:-cpsr0cks!}
36       DB_HOST: dbpostgresql
37       DB_USERNAME: ${DB_USERNAME:-cps}
38       DB_PASSWORD: ${DB_PASSWORD:-cps}
39       DMI_USERNAME: ${DMI_USERNAME:-cpsuser}
40       DMI_PASSWORD: ${DMI_PASSWORD:-cpsr0cks!}
41       #KAFKA_BOOTSTRAP_SERVER: kafka:9092
42       #notification.data-updated.enabled: 'true'
43       #NOTIFICATION_DATASPACE_FILTER_PATTERNS: '.*'
44     restart: unless-stopped
45     depends_on:
46       - dbpostgresql
47
48   dbpostgresql:
49     container_name: dbpostgresql
50     image: postgres:13.2-alpine
51     ports:
52       - '5432:5432'
53     networks:
54       - testsuites_slice-analysis-ms-default
55     environment:
56       POSTGRES_DB: cpsdb
57       POSTGRES_USER: ${DB_USERNAME:-cps}
58       POSTGRES_PASSWORD: ${DB_PASSWORD:-cps}
59   postgres:
60     image: 'postgres:12.4-alpine'
61     container_name: cps-tbdmt-postgres
62     hostname: postgres
63     environment:
64       - POSTGRES_USER=postgres
65       - POSTGRES_PASSWORD=postgres
66       - POSTGRES_DB=cps_template_db
67     ports:
68       - 5432
69     healthcheck:
70       test: ["CMD", "nc", "-z", "localhost", "5432"]
71       interval: 30s
72       timeout: 10s
73       retries: 5
74     networks:
75       - testsuites_slice-analysis-ms-default
76   cps-tdmt:
77     image: ${DOCKER_REPO:-nexus3.onap.org:10003}/onap/cps-tbdmt:${VERSION:-latest}
78     container_name: cps-tbdmt
79     hostname: cps-tbdmt
80     ports:
81       - "8088:8080"
82     volumes:
83       - "./application.yml:/app/resources/application.yml"
84     depends_on:
85       - postgres
86     restart: on-failure:10
87     networks:
88       - testsuites_slice-analysis-ms-default
89   aai-resources:
90     image: ${DOCKER_REPO:-nexus3.onap.org:10001}/onap/aai-resources:1.9.1
91     hostname: aai-resources
92     container_name: aai-resources
93     networks:
94       -  testsuites_slice-analysis-ms-default
95     ports:
96       - "8447:8447"
97     volumes:
98       - ./application.properties:/opt/app/aai-resources/resources/application.properties
99     logging:
100       driver: "json-file"
101       options:
102         max-size: "30m"
103         max-file: "5"