use socket-only postgres
This commit is contained in:
parent
cac1ca221e
commit
d44cd78611
3 changed files with 4 additions and 5 deletions
|
|
@ -22,10 +22,10 @@ LOG_DEPRECATIONS_CHANNEL=null
|
|||
LOG_LEVEL=debug
|
||||
|
||||
DB_CONNECTION=pgsql
|
||||
DB_HOST=127.0.0.1
|
||||
DB_HOST="${PGHOST}"
|
||||
DB_PORT=5432
|
||||
DB_DATABASE=backend
|
||||
DB_USERNAME=root
|
||||
DB_DATABASE=postgres
|
||||
DB_USERNAME=postgres
|
||||
DB_PASSWORD=
|
||||
|
||||
SESSION_DRIVER=database
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@
|
|||
echo "[pg] initializing cluster at $PGDATA"
|
||||
initdb --auth=trust --username=postgres --no-locale --encoding=UTF8 >/dev/null
|
||||
{
|
||||
echo "listen_addresses = '127.0.0.1'"
|
||||
echo "unix_socket_directories = '$PGDATA'"
|
||||
} >> "$PGDATA/postgresql.conf"
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ version: "0.5"
|
|||
|
||||
processes:
|
||||
postgres:
|
||||
command: postgres -D "$PGDATA" -k "$PGDATA" -c listen_addresses=127.0.0.1
|
||||
command: postgres -D "$PGDATA" -k "$PGDATA" -c listen_addresses=
|
||||
shutdown:
|
||||
signal: 2
|
||||
readiness_probe:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue