aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose
diff options
context:
space:
mode:
authorBruno Sakoto <bruno.sakoto@bell.ca>2020-11-23 09:52:33 -0500
committerBruno Sakoto <bruno.sakoto@bell.ca>2020-11-23 09:52:33 -0500
commit161f6390b9e4231e860811614faf77c573308580 (patch)
tree40e57cfc5b6025e4c7900f83285d1afeebfe31d6 /docker-compose
parente731118eca0540792a140803f18c298fb3be132d (diff)
Publish cps-service port with docker compose
Issue-ID: CPS-94 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I10750127640f4953584807b2e0935bbf32c4041b
Diffstat (limited to 'docker-compose')
-rw-r--r--docker-compose/README.md6
-rw-r--r--docker-compose/docker-compose.yml1
2 files changed, 5 insertions, 2 deletions
diff --git a/docker-compose/README.md b/docker-compose/README.md
index d23f033495..619b0d4a8d 100644
--- a/docker-compose/README.md
+++ b/docker-compose/README.md
@@ -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
diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml
index da3b86dc47..b1b3bf9255 100644
--- a/docker-compose/docker-compose.yml
+++ b/docker-compose/docker-compose.yml
@@ -11,7 +11,6 @@ services:
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
restart: unless-stopped
- network_mode: "host"
depends_on:
- dbpostgresql