feat: Fix pgadmin in dev

This commit is contained in:
Your Name
2025-04-05 00:17:48 +08:00
parent 2a8e159f51
commit 9a712b5c85
2 changed files with 17 additions and 0 deletions

View File

@@ -132,6 +132,8 @@ services:
pgadmin:
image: dpage/pgadmin4
restart: always
volumes:
- ./servers.json:/pgadmin4/servers.json
environment:
PGADMIN_DEFAULT_EMAIL: admin@example.com
PGADMIN_DEFAULT_PASSWORD: pass

15
servers.json Normal file
View File

@@ -0,0 +1,15 @@
{
"Servers": {
"1": {
"Name": "Infisical DB",
"Group": "Servers",
"Host": "host.docker.internal",
"Port": 5432,
"MaintenanceDB": "infisical",
"Username": "infisical",
"PassFile": "/pgpass",
"SSLMode": "disable",
"SavePassword": true
}
}
}