1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00

docs: update docker commands to start containers in detached mode

This commit is contained in:
Ahmed 2021-12-31 23:32:35 +01:00 committed by GitHub
parent 4e0fd6cc6e
commit 65306b981e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 \