summaryrefslogtreecommitdiffstats
path: root/docker-compose
diff options
context:
space:
mode:
authorClaudio David Gasparini <claudio.gasparini@pantheon.tech>2020-11-12 08:28:07 +0100
committerClaudio David Gasparini <claudio.gasparini@pantheon.tech>2020-11-16 22:19:49 +0000
commit5faa49cf0206720fc59be21cc449ef812ba6ad97 (patch)
tree5b6996f00716db3d354a47a197848297557001b0 /docker-compose
parent8710dc4267300485119485499de613279bce0e7b (diff)
Fix docker-compose enviroment variables for dbpostgresql service
Use correct variables names for service, currents variable names are result of wrong copy&paste Issue-ID: CPS-22 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: Ibcaf7725175d8ab7e7fbb5199949e3275f849788
Diffstat (limited to 'docker-compose')
-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