diff --git a/docker-compose.yml b/docker-compose.yml index d45c1da..18dd85a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -33,6 +33,8 @@ services: - "5432:5432" volumes: - db_data:/var/lib/postgresql/data + - ./pg_hba.conf:/var/lib/postgresql/data/pg_hba.conf # Mount the custom pg_hba.conf + command: ["postgres", "-c", "config_file=/var/lib/postgresql/data/postgresql.conf"] # PostgreSQL uses custom configuration volumes: db_data: diff --git a/pg_hba.conf b/pg_hba.conf new file mode 100644 index 0000000..7a23f7b --- /dev/null +++ b/pg_hba.conf @@ -0,0 +1,2 @@ +# Allow all connections from the Docker network subnet +host all all 0.0.0.0/0 scram-sha-256