Skip to content

Commit

Permalink
👷 Fix to Postgres config to allow PGA4
Browse files Browse the repository at this point in the history
PGAdmin4 will now be able to connect to the postgres db, whereas before no route was being exposed to allow this behaviour
  • Loading branch information
MountVesuvius committed Sep 10, 2024
1 parent 1fec1aa commit 5a4093c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
2 changes: 2 additions & 0 deletions pg_hba.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Allow all connections from the Docker network subnet
host all all 0.0.0.0/0 scram-sha-256

0 comments on commit 5a4093c

Please sign in to comment.