mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-10 01:16:39 +02:00
docs: update docker commands to start containers in detached mode
This commit is contained in:
parent
4e0fd6cc6e
commit
65306b981e
13
README.md
13
README.md
@ -129,11 +129,16 @@ The are numbers of ways you can run Unleash.
|
|||||||
|
|
||||||
### Run from Docker
|
### Run from Docker
|
||||||
|
|
||||||
1. Create a network by running docker network create unleash
|
1. Create a network by running the following command:
|
||||||
2. Start a postgres database:
|
|
||||||
|
|
||||||
```sh
|
```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 \
|
-e POSTGRES_USER=unleash_user -e POSTGRES_DB=unleash \
|
||||||
--network unleash --name postgres postgres
|
--network unleash --name postgres postgres
|
||||||
```
|
```
|
||||||
@ -141,7 +146,7 @@ docker run -e POSTGRES_PASSWORD=some_password \
|
|||||||
3. Start Unleash via docker:
|
3. Start Unleash via docker:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker run -p 4242:4242 \
|
docker run -d -p 4242:4242 \
|
||||||
-e DATABASE_HOST=postgres -e DATABASE_NAME=unleash \
|
-e DATABASE_HOST=postgres -e DATABASE_NAME=unleash \
|
||||||
-e DATABASE_USERNAME=unleash_user -e DATABASE_PASSWORD=some_password \
|
-e DATABASE_USERNAME=unleash_user -e DATABASE_PASSWORD=some_password \
|
||||||
-e DATABASE_SSL=false \
|
-e DATABASE_SSL=false \
|
||||||
|
Loading…
Reference in New Issue
Block a user