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 6, 2025
1 parent 223a940 commit a8fb5cd
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ services:
-c ssl_cert_file=/var/lib/postgresql/server.crt
-c ssl_key_file=/var/lib/postgresql/server.key
-c hba_file=/etc/pg_hba.conf
networks:
- backend-cgw

rabbitmq:
image: rabbitmq:alpine
Expand Down Expand Up @@ -77,6 +79,19 @@ 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
networks:
- backend-cgw

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

volumes:
pgadmin-data:

networks:
backend-cgw:
driver: bridge

0 comments on commit a8fb5cd

Please sign in to comment.