blob: afe9019f734c3c7b758668e62d6ed3b64852993f [file] [log] [blame]
Rishi.Chail26af9362021-05-04 16:34:09 +01001# ============LICENSE_START=======================================================
2# Copyright (C) 2021 Nordix Foundation.
Bruno Sakotoc9b99342021-06-04 07:49:14 -04003# Modifications Copyright (C) 2021 Bell Canada.
Rishi.Chail26af9362021-05-04 16:34:09 +01004# ================================================================================
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.
lukegleeson097707d2021-07-09 11:21:57 +010016#
17# SPDX-License-Identifier: Apache-2.0
Rishi.Chail26af9362021-05-04 16:34:09 +010018# ============LICENSE_END=========================================================
Rishi.Chail26af9362021-05-04 16:34:09 +010019version: "3.7"
20
21services:
22
23 cps-temporal:
24 container_name: cps-temporal
puthuparambil.aditya8d443ef2021-09-13 18:01:11 +010025 image: ${DOCKER_REPO:-nexus3.onap.org:10003}/onap/cps-temporal:latest
Rishi.Chail26af9362021-05-04 16:34:09 +010026 ports:
27 - '8082:8080'
puthuparambil.aditya8d443ef2021-09-13 18:01:11 +010028 - '8081:8081'
Rishi.Chail26af9362021-05-04 16:34:09 +010029 environment:
30 DB_HOST: timescaledb
31 DB_PORT: 5432
32 DB_USERNAME: cpstemporal
33 DB_PASSWORD: cpstemporal
Bruno Sakotoc9b99342021-06-04 07:49:14 -040034 KAFKA_BOOTSTRAP_SERVER: kafka:9092
puthuparambil.aditya8d443ef2021-09-13 18:01:11 +010035 APP_USERNAME: cpstemporal
36 APP_PASSWORD: cpstemporal
Rishi.Chail26af9362021-05-04 16:34:09 +010037 restart: unless-stopped
38 depends_on:
39 - timescaledb
Bruno Sakotoc9b99342021-06-04 07:49:14 -040040 - kafka
Rishi.Chail26af9362021-05-04 16:34:09 +010041
42 timescaledb:
43 container_name: timescaledb
44 image: timescale/timescaledb:2.1.1-pg13
45 ports:
Bruno Sakotoc9b99342021-06-04 07:49:14 -040046 - '5433:5432'
Rishi.Chail26af9362021-05-04 16:34:09 +010047 environment:
48 POSTGRES_DB: cpstemporaldb
Bruno Sakotoc9b99342021-06-04 07:49:14 -040049 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
puthuparambil.aditya8d443ef2021-09-13 18:01:11 +010071
72 cps-and-ncmp:
73 container_name: cps-and-ncmp
74 image: ${DOCKER_REPO:-nexus3.onap.org:10003}/onap/cps-and-ncmp:${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}