summaryrefslogtreecommitdiffstats
path: root/docker-compose/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docker-compose/docker-compose.yml')
-rw-r--r--docker-compose/docker-compose.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml
new file mode 100644
index 0000000000..6894d3f2ca
--- /dev/null
+++ b/docker-compose/docker-compose.yml
@@ -0,0 +1,26 @@
+version: "3.7"
+
+services:
+ cps:
+ restart: unless-stopped
+ image: nexus3.onap.org:10001/onap/cps-service:${VERSION}
+ container_name: cps-service
+ environment:
+ DB_HOST: ${DB_HOST}
+ DB_USERNAME: ${DB_USERNAME}
+ DB_PASSWORD: ${DB_PASSWORD}
+ ports:
+ - "8080:8080"
+ network_mode: "host
+ depends_on:
+ - dbpostgresql
+
+ dbpostgresql:
+ container_name: dbpostgresql
+ image: postgres
+ ports:
+ - '5432:5432'
+ environment:
+ DB_NAME: cpsdb
+ DB_USERNAME: ${DB_USERNAME}
+ DB_PASSWORD: ${DB_PASSWORD} \ No newline at end of file