summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRishi Chail <rishi.chail@est.tech>2020-11-17 12:01:33 +0000
committerGerrit Code Review <gerrit@onap.org>2020-11-17 12:01:33 +0000
commitccea64d2ae8eed18d4626e5de5e3f79a989dd301 (patch)
tree774701630faa9d0f8143821ef6a30ca19fff067c
parent3ef227afb0bfc667b8766c6fb78939ee22b73293 (diff)
parent5faa49cf0206720fc59be21cc449ef812ba6ad97 (diff)
Merge "Fix docker-compose enviroment variables for dbpostgresql service"
-rw-r--r--docker-compose/docker-compose.yml15
1 files changed, 7 insertions, 8 deletions
diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml
index 6894d3f2ca..b1b3bf9255 100644
--- a/docker-compose/docker-compose.yml
+++ b/docker-compose/docker-compose.yml
@@ -2,16 +2,15 @@ version: "3.7"
services:
cps:
- restart: unless-stopped
- image: nexus3.onap.org:10001/onap/cps-service:${VERSION}
container_name: cps-service
+ image: nexus3.onap.org:10001/onap/cps-service:${VERSION}
+ ports:
+ - "8080:8080"
environment:
DB_HOST: ${DB_HOST}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
- ports:
- - "8080:8080"
- network_mode: "host
+ restart: unless-stopped
depends_on:
- dbpostgresql
@@ -21,6 +20,6 @@ services:
ports:
- '5432:5432'
environment:
- DB_NAME: cpsdb
- DB_USERNAME: ${DB_USERNAME}
- DB_PASSWORD: ${DB_PASSWORD} \ No newline at end of file
+ POSTGRES_DB: cpsdb
+ POSTGRES_USER: ${DB_USERNAME}
+ POSTGRES_PASSWORD: ${DB_PASSWORD} \ No newline at end of file