Publish cps-service port with docker compose 81/115281/1
authorBruno Sakoto <bruno.sakoto@bell.ca>
Mon, 23 Nov 2020 14:52:33 +0000 (09:52 -0500)
committerBruno Sakoto <bruno.sakoto@bell.ca>
Mon, 23 Nov 2020 14:52:33 +0000 (09:52 -0500)
Issue-ID: CPS-94
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: I10750127640f4953584807b2e0935bbf32c4041b

docker-compose/README.md
docker-compose/docker-compose.yml

index d23f033..619b0d4 100644 (file)
@@ -1,3 +1,7 @@
+# Docker Compose
+
+To run the application locally using `docker-compose`, execute following command from this `docker-compose` folder:
+
 ```bash
-VERSION=0.0.1-SNAPSHOT DB_HOST=localhost DB_USERNAME=cps DB_PASSWORD=cps docker-compose up
+VERSION=0.0.1-SNAPSHOT DB_HOST=dbpostgresql DB_USERNAME=cps DB_PASSWORD=cps docker-compose up
 ```
\ No newline at end of file
index da3b86d..b1b3bf9 100644 (file)
@@ -11,7 +11,6 @@ services:
       DB_USERNAME: ${DB_USERNAME}
       DB_PASSWORD: ${DB_PASSWORD}
     restart: unless-stopped
-    network_mode: "host"
     depends_on:
       - dbpostgresql