Skip to content

Commit ff92096

Browse files
committed
feat: add pgAdmin service configuration and update env.template
1 parent db29950 commit ff92096

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.env.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ CLOUD_DB_PORT=
1313
CLOUD_DB_USER=
1414
CLOUD_DB_PASSWORD=
1515

16+
PGADMIN_DEFAULT_EMAIL=
17+
PGADMIN_DEFAULT_PASSWORD=
18+
1619
JWT_SECRET_KEY=
1720
JWT_ACCESS_EXPIRATION=
1821
JWT_COOKIE_SECURE=false

db.compose.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,24 @@ services:
88
POSTGRES_USER: ${LOCAL_DB_USER}
99
POSTGRES_PASSWORD: ${LOCAL_DB_PASSWORD}
1010
ports:
11-
- 5432:5432
11+
- "5432:5432"
1212
volumes:
1313
- mysweldo-postgres-data:/var/lib/postgresql/data
1414

15+
pgadmin:
16+
container_name: mysweldo-pgadmin
17+
image: dpage/pgadmin4
18+
restart: unless-stopped
19+
environment:
20+
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
21+
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
22+
ports:
23+
- "5050:80"
24+
depends_on:
25+
- postgresql
26+
volumes:
27+
- pgadmin-data:/var/lib/pgadmin
28+
1529
volumes:
1630
mysweldo-postgres-data:
31+
pgadmin-data:

0 commit comments

Comments
 (0)