Rishi.Chail | 26af936 | 2021-05-04 16:34:09 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (C) 2021 Nordix Foundation. |
Bruno Sakoto | f7dd1c8 | 2022-03-03 12:57:42 -0500 | [diff] [blame] | 3 | # Modifications Copyright (C) 2021-2022 Bell Canada. |
Rishi.Chail | 26af936 | 2021-05-04 16:34:09 +0100 | [diff] [blame] | 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. |
lukegleeson | 097707d | 2021-07-09 11:21:57 +0100 | [diff] [blame] | 16 | # |
| 17 | # SPDX-License-Identifier: Apache-2.0 |
Rishi.Chail | 26af936 | 2021-05-04 16:34:09 +0100 | [diff] [blame] | 18 | # ============LICENSE_END========================================================= |
Rishi.Chail | 26af936 | 2021-05-04 16:34:09 +0100 | [diff] [blame] | 19 | version: "3.7" |
| 20 | |
| 21 | services: |
| 22 | |
| 23 | cps-temporal: |
| 24 | container_name: cps-temporal |
Bruno Sakoto | f7dd1c8 | 2022-03-03 12:57:42 -0500 | [diff] [blame] | 25 | image: ${CPS_TEMPORAL_DOCKER_REPO-nexus3.onap.org:10003/}onap/cps-temporal:${CPS_TEMPORAL_VERSION:-latest} |
Rishi.Chail | 26af936 | 2021-05-04 16:34:09 +0100 | [diff] [blame] | 26 | ports: |
| 27 | - '8082:8080' |
puthuparambil.aditya | 8d443ef | 2021-09-13 18:01:11 +0100 | [diff] [blame] | 28 | - '8081:8081' |
Rishi.Chail | 26af936 | 2021-05-04 16:34:09 +0100 | [diff] [blame] | 29 | environment: |
| 30 | DB_HOST: timescaledb |
| 31 | DB_PORT: 5432 |
| 32 | DB_USERNAME: cpstemporal |
| 33 | DB_PASSWORD: cpstemporal |
Bruno Sakoto | c9b9934 | 2021-06-04 07:49:14 -0400 | [diff] [blame] | 34 | KAFKA_BOOTSTRAP_SERVER: kafka:9092 |
puthuparambil.aditya | 8d443ef | 2021-09-13 18:01:11 +0100 | [diff] [blame] | 35 | APP_USERNAME: cpstemporal |
| 36 | APP_PASSWORD: cpstemporal |
Rishi.Chail | 26af936 | 2021-05-04 16:34:09 +0100 | [diff] [blame] | 37 | restart: unless-stopped |
| 38 | depends_on: |
| 39 | - timescaledb |
Bruno Sakoto | c9b9934 | 2021-06-04 07:49:14 -0400 | [diff] [blame] | 40 | - kafka |
Rishi.Chail | 26af936 | 2021-05-04 16:34:09 +0100 | [diff] [blame] | 41 | |
| 42 | timescaledb: |
| 43 | container_name: timescaledb |
Bruno Sakoto | ed024de | 2022-01-05 17:44:11 -0500 | [diff] [blame] | 44 | image: timescale/timescaledb:2.5.1-pg14 |
Rishi.Chail | 26af936 | 2021-05-04 16:34:09 +0100 | [diff] [blame] | 45 | ports: |
Bruno Sakoto | c9b9934 | 2021-06-04 07:49:14 -0400 | [diff] [blame] | 46 | - '5433:5432' |
Rishi.Chail | 26af936 | 2021-05-04 16:34:09 +0100 | [diff] [blame] | 47 | environment: |
| 48 | POSTGRES_DB: cpstemporaldb |
Bruno Sakoto | c9b9934 | 2021-06-04 07:49:14 -0400 | [diff] [blame] | 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 |
puthuparambil.aditya | 8d443ef | 2021-09-13 18:01:11 +0100 | [diff] [blame] | 71 | |
| 72 | cps-and-ncmp: |
| 73 | container_name: cps-and-ncmp |
Bruno Sakoto | 251d6a8 | 2022-03-16 22:55:10 -0400 | [diff] [blame] | 74 | image: ${CPS_CORE_DOCKER_REPO-nexus3.onap.org:10001/}onap/cps-and-ncmp:${STABLE_CPS_CORE_VERSION:-latest} |
puthuparambil.aditya | 8d443ef | 2021-09-13 18:01:11 +0100 | [diff] [blame] | 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} |