This commit is contained in:
parent
19a5cbe6bf
commit
c819a101db
|
|
@ -317,6 +317,11 @@ ADD --chmod=0755 \
|
|||
https://github.com/docker-library/postgres/raw/master/15/bullseye/docker-entrypoint.sh \
|
||||
/usr/local/bin/
|
||||
|
||||
RUN sed -i '/docker_init_database_dir/a \
|
||||
# 注入 listen_addresses \n\
|
||||
sed -i "s/^#*\\s*listen_addresses\\s*=.*/listen_addresses = '\''0.0.0.0'\''/" "$PGDATA/postgresql.conf"' \
|
||||
/usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown postgres:postgres /var/run/postgresql
|
||||
|
||||
COPY supervisord.conf ./etc/
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ chmod=0700
|
|||
serverurl=unix:///var/run/supervisor.sock
|
||||
|
||||
[program:postgres]
|
||||
command=/usr/local/bin/docker-entrypoint.sh postgres -D "/etc/postgres"
|
||||
command=/usr/local/bin/docker-entrypoint.sh postgres -D "/var/lib/postgresql/data"
|
||||
|
||||
autorestart=true
|
||||
startsecs=5
|
||||
|
|
@ -22,7 +22,7 @@ environment=
|
|||
POSTGRES_USER="supabase_admin",
|
||||
POSTGRES_PASSWORD="postgres",
|
||||
POSTGRES_DB="postgres",
|
||||
PGDATA="/etc/postgres"
|
||||
PGDATA="/var/lib/postgresql/data"
|
||||
|
||||
# [program:kong]
|
||||
# command=/supabase/kong/docker-entrypoint.sh kong docker-start
|
||||
|
|
|
|||
Loading…
Reference in New Issue