Retire CPS-Temporal Repo
[cps/cps-temporal.git] / docker-compose.yml
1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2021 Nordix Foundation.
3 # Modifications Copyright (C) 2021-2022 Bell Canada.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #       http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
19 version: "3.7"
20
21 services:
22
23   cps-temporal:
24     container_name: cps-temporal
25     image: ${CPS_TEMPORAL_DOCKER_REPO-nexus3.onap.org:10003/}onap/cps-temporal:${CPS_TEMPORAL_VERSION:-latest}
26     ports:
27       - '8082:8080'
28       - '8081:8081'
29     environment:
30       DB_HOST: timescaledb
31       DB_PORT: 5432
32       DB_USERNAME: cpstemporal
33       DB_PASSWORD: cpstemporal
34       KAFKA_BOOTSTRAP_SERVER: kafka:9092
35       APP_USERNAME: cpstemporal
36       APP_PASSWORD: cpstemporal
37     restart: unless-stopped
38     depends_on:
39       - timescaledb
40       - kafka
41
42   timescaledb:
43     container_name: timescaledb
44     image: timescale/timescaledb:2.5.1-pg14
45     ports:
46       - '5433:5432'
47     environment:
48       POSTGRES_DB: cpstemporaldb
49       POSTGRES_USER: cpstemporal
50       POSTGRES_PASSWORD: cpstemporal
51
52   zookeeper:
53     image: confluentinc/cp-zookeeper:6.1.1
54     container_name: zookeeper
55     environment:
56       ZOOKEEPER_CLIENT_PORT: 2181
57
58   kafka:
59     image: confluentinc/cp-kafka:6.1.1
60     container_name: kafka
61     ports:
62       - "19092:19092"
63     depends_on:
64       - zookeeper
65     environment:
66       KAFKA_BROKER_ID: 1
67       KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
68       KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,CONNECTIONS_FROM_HOST://localhost:19092
69       KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,CONNECTIONS_FROM_HOST:PLAINTEXT
70       KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
71
72   cps-and-ncmp:
73     container_name: cps-and-ncmp
74     image: ${CPS_CORE_DOCKER_REPO-nexus3.onap.org:10001/}onap/cps-and-ncmp:${STABLE_CPS_CORE_VERSION:-latest}
75     ports:
76       - "8083:8080"
77       - "8087:8081"
78     environment:
79       CPS_USERNAME: ${CPS_USERNAME:-cpsuser}
80       CPS_PASSWORD: ${CPS_PASSWORD:-cpsr0cks!}
81       DB_HOST: dbpostgresql
82       DB_USERNAME: ${DB_USERNAME:-cps}
83       DB_PASSWORD: ${DB_PASSWORD:-cps}
84       DMI_USERNAME: ${DMI_USERNAME:-cpsuser}
85       DMI_PASSWORD: ${DMI_PASSWORD:-cpsr0cks!}
86       KAFKA_BOOTSTRAP_SERVER: kafka:9092
87       notification.data-updated.enabled: 'true'
88       NOTIFICATION_DATASPACE_FILTER_PATTERNS: '.*'
89     restart: unless-stopped
90     depends_on:
91       - dbpostgresql
92
93   dbpostgresql:
94     container_name: dbpostgresql
95     image: postgres:13.2-alpine
96     ports:
97       - '5432:5432'
98     environment:
99       POSTGRES_DB: cpsdb
100       POSTGRES_USER: ${DB_USERNAME:-cps}
101       POSTGRES_PASSWORD: ${DB_PASSWORD:-cps}