Skip to content

Commit

Permalink
Added PREST_PG_DATABASE var and network param (#36)
Browse files Browse the repository at this point in the history
Database name is mandatory, and existing database may be running on the host machine.
  • Loading branch information
luizvital committed Aug 5, 2020
1 parent 6a4534f commit 6275fb0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions content/getting-started/already-have-db.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ docker run -e PREST_HTTP_PORT=3000 \
-e PREST_PG_HOST=127.0.0.1 \
-e PREST_PG_USER=postgres \
-e PREST_PG_PASS=pass \
-e PREST_PG_DATABASE=prest \
prest/prest
```
if you want to connect to a database running on the host machine you can add `--network host` param.

or if use Docker Compose (there's an [example in the repository](https://github.com/prest/prest/blob/master/docker-compose.yml))

```sh
Expand Down

0 comments on commit 6275fb0

Please sign in to comment.