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
|
LOG_LEVEL=debug
|
||||||
|
|
||||||
DB_CONNECTION=pgsql
|
DB_CONNECTION=pgsql
|
||||||
DB_HOST=127.0.0.1
|
DB_HOST="${PGHOST}"
|
||||||
DB_PORT=5432
|
DB_PORT=5432
|
||||||
DB_DATABASE=backend
|
DB_DATABASE=postgres
|
||||||
DB_USERNAME=root
|
DB_USERNAME=postgres
|
||||||
DB_PASSWORD=
|
DB_PASSWORD=
|
||||||
|
|
||||||
SESSION_DRIVER=database
|
SESSION_DRIVER=database
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,6 @@
|
||||||
echo "[pg] initializing cluster at $PGDATA"
|
echo "[pg] initializing cluster at $PGDATA"
|
||||||
initdb --auth=trust --username=postgres --no-locale --encoding=UTF8 >/dev/null
|
initdb --auth=trust --username=postgres --no-locale --encoding=UTF8 >/dev/null
|
||||||
{
|
{
|
||||||
echo "listen_addresses = '127.0.0.1'"
|
|
||||||
echo "unix_socket_directories = '$PGDATA'"
|
echo "unix_socket_directories = '$PGDATA'"
|
||||||
} >> "$PGDATA/postgresql.conf"
|
} >> "$PGDATA/postgresql.conf"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ version: "0.5"
|
||||||
|
|
||||||
processes:
|
processes:
|
||||||
postgres:
|
postgres:
|
||||||
command: postgres -D "$PGDATA" -k "$PGDATA" -c listen_addresses=127.0.0.1
|
command: postgres -D "$PGDATA" -k "$PGDATA" -c listen_addresses=
|
||||||
shutdown:
|
shutdown:
|
||||||
signal: 2
|
signal: 2
|
||||||
readiness_probe:
|
readiness_probe:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue