Fix docker-compose, add postgres init script

This commit is contained in:
Michael Hohn
2024-06-11 18:05:44 -07:00
committed by =Michael Hohn
parent 9c0cdb1fe4
commit 4b721b5969
3 changed files with 16 additions and 4 deletions

View File

@@ -99,7 +99,10 @@ These are simple steps using a single container.
### Manually create needed postgres databases
This is still necessary after `docker-compose up` to avoid
docker-compose now runs a db init script, but this information is useful for
debugging/manual work.
~~This is still necessary after `docker-compose up` to avoid~~
[error] failed to initialize database, got error failed to connect to
`user=exampleuser database=server_db`: 172.25.0.3:5432 (postgres): server
@@ -122,7 +125,7 @@ The steps:
# List all dbs
\l
To run pgmin, the minimal go/postgres test part of this repository:
### To run pgmin, the minimal go/postgres test part of this repository
1. Run pgmin