Skip to content

Commit

Permalink
feat: add pgAdmin service to Docker Compose configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
PooyaRaki committed Mar 7, 2025
1 parent 223a940 commit 534f999
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db_config/test/pg_hba.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Allow any user on the local system to connect
# TYPE DATABASE USER ADDRESS METHOD
local all all trust
hostssl all all all md5
host all all all md5
hostssl all all all md5
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,17 @@ services:
- redis
- db

pgadmin:
image: dpage/pgadmin4
restart: always
ports:
- '8888:80'
environment:
PGADMIN_DEFAULT_EMAIL: ${POSTGRES_ADMIN_USER:[email protected]}
PGADMIN_DEFAULT_PASSWORD: ${POSTGRES_ADMIN_PASS:-admin}
volumes:
- pgadmin-data:/var/lib/pgadmin

nginx:
image: nginx:1.25-alpine
ports:
Expand All @@ -88,3 +99,6 @@ services:
APPLICATION_PORT: ${APPLICATION_PORT-3000}
depends_on:
- web

volumes:
pgadmin-data:

0 comments on commit 534f999

Please sign in to comment.