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
diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml
index 6894d3f..b1b3bf9 100644
--- a/docker-compose/docker-compose.yml
+++ b/docker-compose/docker-compose.yml
@@ -2,16 +2,15 @@
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 @@
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