Update pg_hba.conf

This commit is contained in:
2025-09-03 04:04:34 +09:00
parent 3c28d33ebf
commit 4901b44f4a
2 changed files with 32 additions and 0 deletions

31
custom-pg_hba.conf Normal file
View File

@ -0,0 +1,31 @@
# PostgreSQL Client Authentication Configuration File
# ===================================================
#
# TYPE DATABASE USER ADDRESS METHOD
# Database administrative login by Unix domain socket
local all postgres peer
# "local" is for Unix domain socket connections only
# md5認証に変更してpeer認証エラーを回避
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
local replication all md5
host replication all 127.0.0.1/32 md5
host replication all ::1/128 md5
# Docker network connections
host all all 172.0.0.0/8 md5
host all all 192.168.0.0/16 md5
host all all 0.0.0.0/0 md5
# Replication connections
host replication replicator 0.0.0.0/0 md5

View File

@ -6,6 +6,7 @@ services:
volumes: volumes:
- postgres_data:/var/lib/postgresql - postgres_data:/var/lib/postgresql
- ./custom-postgresql.conf:/etc/postgresql/12/main/postgresql.conf - ./custom-postgresql.conf:/etc/postgresql/12/main/postgresql.conf
- ./custom-pg_hba.conf:/etc/postgresql/12/main/pg_hba.conf
- ./rogaining.sql:/sql/rogaining.sql - ./rogaining.sql:/sql/rogaining.sql
- ./sqls:/sqls - ./sqls:/sqls
- ./create_location2025_table.sql:/sql/create_location2025_table.sql - ./create_location2025_table.sql:/sql/create_location2025_table.sql