diff --git a/Dockerfile b/Dockerfile index e129290..7dec11e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 9e2f511..67bd614 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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