Rishi.Chail | 26af936 | 2021-05-04 16:34:09 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (C) 2021 Nordix Foundation. |
Bruno Sakoto | c9b9934 | 2021-06-04 07:49:14 -0400 | [diff] [blame^] | 3 | # Modifications Copyright (C) 2021 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. |
| 16 | # ============LICENSE_END========================================================= |
| 17 | |
| 18 | version: "3.7" |
| 19 | |
| 20 | services: |
| 21 | |
| 22 | cps-temporal: |
| 23 | container_name: cps-temporal |
| 24 | image: onap/cps-temporal:latest |
| 25 | ports: |
| 26 | - '8082:8080' |
| 27 | environment: |
| 28 | DB_HOST: timescaledb |
| 29 | DB_PORT: 5432 |
| 30 | DB_USERNAME: cpstemporal |
| 31 | DB_PASSWORD: cpstemporal |
Bruno Sakoto | c9b9934 | 2021-06-04 07:49:14 -0400 | [diff] [blame^] | 32 | KAFKA_BOOTSTRAP_SERVER: kafka:9092 |
| 33 | |
Rishi.Chail | 26af936 | 2021-05-04 16:34:09 +0100 | [diff] [blame] | 34 | restart: unless-stopped |
| 35 | depends_on: |
| 36 | - timescaledb |
Bruno Sakoto | c9b9934 | 2021-06-04 07:49:14 -0400 | [diff] [blame^] | 37 | - kafka |
Rishi.Chail | 26af936 | 2021-05-04 16:34:09 +0100 | [diff] [blame] | 38 | |
| 39 | timescaledb: |
| 40 | container_name: timescaledb |
| 41 | image: timescale/timescaledb:2.1.1-pg13 |
| 42 | ports: |
Bruno Sakoto | c9b9934 | 2021-06-04 07:49:14 -0400 | [diff] [blame^] | 43 | - '5433:5432' |
Rishi.Chail | 26af936 | 2021-05-04 16:34:09 +0100 | [diff] [blame] | 44 | environment: |
| 45 | POSTGRES_DB: cpstemporaldb |
Bruno Sakoto | c9b9934 | 2021-06-04 07:49:14 -0400 | [diff] [blame^] | 46 | POSTGRES_USER: cpstemporal |
| 47 | POSTGRES_PASSWORD: cpstemporal |
| 48 | |
| 49 | zookeeper: |
| 50 | image: confluentinc/cp-zookeeper:6.1.1 |
| 51 | container_name: zookeeper |
| 52 | environment: |
| 53 | ZOOKEEPER_CLIENT_PORT: 2181 |
| 54 | |
| 55 | kafka: |
| 56 | image: confluentinc/cp-kafka:6.1.1 |
| 57 | container_name: kafka |
| 58 | ports: |
| 59 | - "19092:19092" |
| 60 | depends_on: |
| 61 | - zookeeper |
| 62 | environment: |
| 63 | KAFKA_BROKER_ID: 1 |
| 64 | KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 |
| 65 | KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,CONNECTIONS_FROM_HOST://localhost:19092 |
| 66 | KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,CONNECTIONS_FROM_HOST:PLAINTEXT |
| 67 | KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 |