Skip to content

Commit

Permalink
fix: expose pg_admin port on the localhost interface only (#957)
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Carvajal <roberto.carvajal@gmail.com>
Co-authored-by: Yurii Shynbuiev - IOHK <yurii.shynbuiev@iohk.io>
  • Loading branch information
robertocarvajal and yshyn-iohk committed May 1, 2024
1 parent a9a2c6f commit 73674b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infrastructure/shared/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
- ./postgres/init-script.sh:/docker-entrypoint-initdb.d/init-script.sh
- ./postgres/max_conns.sql:/docker-entrypoint-initdb.d/max_conns.sql
ports:
- "${PG_PORT:-5432}:5432"
- "127.0.0.1:${PG_PORT:-5432}:5432"
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres", "-d", "agent"]
interval: 10s
Expand All @@ -32,7 +32,7 @@ services:
volumes:
- pgadmin:/var/lib/pgadmin
ports:
- "${PGADMIN_PORT:-5050}:80"
- "127.0.0.1:${PGADMIN_PORT:-5050}:80"
depends_on:
db:
condition: service_healthy
Expand Down

0 comments on commit 73674b5

Please sign in to comment.