This commit is contained in:
parent
ba0af62d17
commit
9b482b35f7
|
|
@ -313,12 +313,12 @@ _main() {
|
||||||
# setup data directories and permissions (when run as root)
|
# setup data directories and permissions (when run as root)
|
||||||
docker_create_db_directories
|
docker_create_db_directories
|
||||||
if [ "$(id -u)" = '0' ]; then
|
if [ "$(id -u)" = '0' ]; then
|
||||||
exec env \
|
exec env \
|
||||||
POSTGRES_USER="$POSTGRES_USER" \
|
POSTGRES_USER="$POSTGRES_USER" \
|
||||||
POSTGRES_PASSWORD="$POSTGRES_PASSWORD" \
|
POSTGRES_PASSWORD="$POSTGRES_PASSWORD" \
|
||||||
POSTGRES_DB="$POSTGRES_DB" \
|
POSTGRES_DB="$POSTGRES_DB" \
|
||||||
PGDATA="$PGDATA" \
|
PGDATA="$PGDATA" \
|
||||||
gosu postgres "$BASH_SOURCE" "$@"
|
gosu postgres "$BASH_SOURCE" "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# only run initialization on an empty data directory
|
# only run initialization on an empty data directory
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
[supervisord]
|
[supervisord]
|
||||||
nodaemon=true
|
nodaemon=true
|
||||||
logfile=/var/log/supervisord.log
|
logfile=/var/log/supervisord.log
|
||||||
loglevel=info
|
loglevel=debug
|
||||||
pidfile=/tmp/supervisord.pid
|
pidfile=/tmp/supervisord.pid
|
||||||
|
|
||||||
[unix_http_server]
|
[unix_http_server]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue