From 65306b981e3299527e32371cfac27a4bff7204df Mon Sep 17 00:00:00 2001 From: Ahmed Date: Fri, 31 Dec 2021 23:32:35 +0100 Subject: [PATCH 1/4] docs: update docker commands to start containers in detached mode --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d235627994..14493fdf1b 100644 --- a/README.md +++ b/README.md @@ -129,11 +129,16 @@ The are numbers of ways you can run Unleash. ### Run from Docker -1. Create a network by running docker network create unleash -2. Start a postgres database: +1. Create a network by running the following command: ```sh -docker run -e POSTGRES_PASSWORD=some_password \ +docker network create unleash +``` + +3. Start a postgres database: + +```sh +docker run -d -e POSTGRES_PASSWORD=some_password \ -e POSTGRES_USER=unleash_user -e POSTGRES_DB=unleash \ --network unleash --name postgres postgres ``` @@ -141,7 +146,7 @@ docker run -e POSTGRES_PASSWORD=some_password \ 3. Start Unleash via docker: ```sh -docker run -p 4242:4242 \ +docker run -d -p 4242:4242 \ -e DATABASE_HOST=postgres -e DATABASE_NAME=unleash \ -e DATABASE_USERNAME=unleash_user -e DATABASE_PASSWORD=some_password \ -e DATABASE_SSL=false \ From 98b47880b2b875cd869a7fb9973c2fa69850b211 Mon Sep 17 00:00:00 2001 From: Ahmed Date: Fri, 31 Dec 2021 23:35:38 +0100 Subject: [PATCH 2/4] docs: fix list numbers --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 14493fdf1b..2eaccff8e3 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,7 @@ The are numbers of ways you can run Unleash. docker network create unleash ``` -3. Start a postgres database: +2. Start a postgres database: ```sh docker run -d -e POSTGRES_PASSWORD=some_password \ From 8263487b7ab7c7d5b8a387e3c9e71770d4d55c0f Mon Sep 17 00:00:00 2001 From: Ahmed Date: Mon, 3 Jan 2022 10:55:56 +0100 Subject: [PATCH 3/4] remove detached option Co-authored-by: Thomas Heartman --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2eaccff8e3..1974476f0f 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ docker network create unleash 2. Start a postgres database: ```sh -docker run -d -e POSTGRES_PASSWORD=some_password \ +docker run -e POSTGRES_PASSWORD=some_password \ -e POSTGRES_USER=unleash_user -e POSTGRES_DB=unleash \ --network unleash --name postgres postgres ``` From 391fc84543385917868f3d335deefaa2e3d50f5b Mon Sep 17 00:00:00 2001 From: Ahmed Date: Mon, 3 Jan 2022 10:56:20 +0100 Subject: [PATCH 4/4] remove detached option Co-authored-by: Thomas Heartman --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1974476f0f..877f81d96f 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,7 @@ docker run -e POSTGRES_PASSWORD=some_password \ 3. Start Unleash via docker: ```sh -docker run -d -p 4242:4242 \ +docker run -p 4242:4242 \ -e DATABASE_HOST=postgres -e DATABASE_NAME=unleash \ -e DATABASE_USERNAME=unleash_user -e DATABASE_PASSWORD=some_password \ -e DATABASE_SSL=false \