Enable remote access: listen_addresses=* and pg_hba.conf

This commit is contained in:
João Pedro Toledo Goncalves 2026-02-03 12:42:22 -03:00
parent 1bfbf76a17
commit cea9ca5089
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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