mirror of
https://github.com/actix/examples
synced 2025-05-11 16:02:58 +02:00
feat: added docker list containers command to the diesel-async README.md to check if postgres is up and running
This commit is contained in:
parent
14fbe6d334
commit
661438af4a
@ -10,6 +10,11 @@ Basic integration of [Diesel-async](https://github.com/weiznich/diesel_async) us
|
||||
# on any OS
|
||||
docker run -d --restart unless-stopped --name postgresql -e POSTGRES_USER=test-user -e POSTGRES_PASSWORD=password -p 5432:5432 -v postgres_data:/var/lib/postgresql/data postgres:alpine
|
||||
```
|
||||
make sure it has successfully started up and is running
|
||||
```sh
|
||||
# on any OS
|
||||
docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Status}}\t{{.Ports}}"
|
||||
```
|
||||
|
||||
### Initialize PostgreSQL Database
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user