Update Readme about postgres docker

This commit is contained in:
Matthieu Lamalle 2019-07-24 17:40:27 +02:00
parent 73fac765de
commit bbe34b6055
1 changed files with 14 additions and 1 deletions

View File

@ -28,4 +28,17 @@ curl -X POST \
-d '{"query": "mutation { createUser(firstname: \"John\", lastname: \"Snow\") { id,firstname,lastname } }"}' \ -d '{"query": "mutation { createUser(firstname: \"John\", lastname: \"Snow\") { id,firstname,lastname } }"}' \
http://localhost:8383 http://localhost:8383
``` ```
## Postgres
Si besoin, lancer un serveur postgres via Docker
```
mkdir $HOME/docker/postgres/volumes
docker run --rm -d \
--name postgres \
-e POSTGRES_PASSWORD=postgres \
-p 5432:5432 \
-v $HOME/docker/postgres/volumes:/var/lib/postgresql/data \
postgres
```