blob: fae1cbcdfed5323c8e2c6a08339cd3cfe45f6b25 [file] [log] [blame]
Rishi.Chail26af9362021-05-04 16:34:09 +01001# ============LICENSE_START=======================================================
2# Copyright (C) 2021 Nordix Foundation.
3# ================================================================================
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15# ============LICENSE_END=========================================================
16
17version: "3.7"
18
19services:
20
21 cps-temporal:
22 container_name: cps-temporal
23 image: onap/cps-temporal:latest
24 ports:
25 - '8082:8080'
26 environment:
27 DB_HOST: timescaledb
28 DB_PORT: 5432
29 DB_USERNAME: cpstemporal
30 DB_PASSWORD: cpstemporal
31 restart: unless-stopped
32 depends_on:
33 - timescaledb
34
35 timescaledb:
36 container_name: timescaledb
37 image: timescale/timescaledb:2.1.1-pg13
38 ports:
39 - '5432:5432'
40 environment:
41 POSTGRES_DB: cpstemporaldb
42 POSTGRES_USER: ${DB_USERNAME}
43 POSTGRES_PASSWORD: ${DB_PASSWORD}