From 5a4093ca3fc25fac661546026660013b074a4a40 Mon Sep 17 00:00:00 2001 From: MountVesuvius Date: Tue, 10 Sep 2024 17:43:59 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Fix=20to=20Postgres=20config=20t?= =?UTF-8?q?o=20allow=20PGA4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PGAdmin4 will now be able to connect to the postgres db, whereas before no route was being exposed to allow this behaviour --- docker-compose.yml | 2 ++ pg_hba.conf | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 pg_hba.conf 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