notes/db/sql/postgres/inst/initdb.txt
Ihar Hancharenka 71f35a11de m
2023-06-28 20:18:41 +03:00

10 строки
353 B
Plaintext

env UID=${UID} GID=${GID} \
docker compose $SOME_COMPOSE_FILES run --rm postgres12 bash -c 'initdb -E UTF8 -D "$PGDATA/data" -U "postgres" --auth=trust --auth-host=trust --auth-local=trust'
# TODO: need to manually add this to pg_hba.conf:
## host all all all md5
# host all all all trust
# TODO: check at postgresql.conf
# listen_addresses = '*'