Enable remote access: listen_addresses=* and pg_hba.conf
This commit is contained in:
parent
1bfbf76a17
commit
cea9ca5089
|
|
@ -5,3 +5,6 @@ COPY backup_global_20260130_184353.sql /tmp/restore.sql
|
|||
|
||||
# Set correct permissions
|
||||
RUN chmod 644 /tmp/restore.sql
|
||||
|
||||
# Configure pg_hba.conf to accept connections from any host
|
||||
RUN echo "host all all 0.0.0.0/0 scram-sha-256" >> /usr/local/share/postgresql/pg_hba.conf.sample
|
||||
|
|
|
|||
|
|
@ -10,10 +10,15 @@ services:
|
|||
POSTGRES_USER: itguys
|
||||
POSTGRES_PASSWORD: PralogLocal2026!Secure
|
||||
POSTGRES_DB: global
|
||||
# Allow connections from any host
|
||||
POSTGRES_HOST_AUTH_METHOD: scram-sha-256
|
||||
ports:
|
||||
- "15432:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
command: >
|
||||
postgres
|
||||
-c listen_addresses='*'
|
||||
networks:
|
||||
- pralog-net
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue