-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add pgAdmin service to Docker Compose configuration
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -88,3 +99,6 @@ services: | |
APPLICATION_PORT: ${APPLICATION_PORT-3000} | ||
depends_on: | ||
- web | ||
|
||
volumes: | ||
pgadmin-data: |