Skip to content

Commit 9e894a4

Browse files
authored
Merge pull request #114 from eleijonmarck/patch-2
Update README with connection to db via psql
2 parents 1d56021 + b258aec commit 9e894a4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docker/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ and may make it harder to reproduce issues.
4646
run
4747
[docker-volume-watcher](https://github.com/merofeev/docker-windows-volume-watcher)
4848

49+
#### DB tool:
50+
51+
To connect to the container database with psql or another database tool, use
52+
port 6543 on localhost and populate the `DATABASE_NAME`, `DATABASE_OWNER` and
53+
`DATABASE_OWNER_PASSWORD` from your `.env` file:
54+
55+
```bash
56+
$ psql "postgres://$DATABASE_OWNER:$DATABASE_OWNER_PASSWORD@localhost:6543/$DATABASE_NAME"
57+
```
58+
4959
#### Use Case Example:
5060

5161
> Attach to `dev`, run `yarn db commit` to commit the latest migration, then

0 commit comments

Comments
 (0)