Skip to content

Commit

Permalink
Merge pull request #180 from MrSebastian/update-pgadmin
Browse files Browse the repository at this point in the history
Update pgadmin
  • Loading branch information
MrSebastian authored May 20, 2024
2 parents e4203eb + 8d3a73e commit 6f20801
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/.idea/
/stack/pgadmin/configdir/
6 changes: 5 additions & 1 deletion stack/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,17 @@ services:

# Tools
postgres-pg-admin:
image: dpage/pgadmin4:7.8
image: dpage/pgadmin4:8.6
container_name: todo-app-pg-admin
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin
PGADMIN_SERVER_JSON_FILE: /ext-mount/servers.json
ports:
- 8101:80
volumes:
- './pgadmin/configdir:/var/lib/pgadmin'
- './pgadmin/initservers:/ext-mount'
networks:
- postgres
- db
Expand Down
40 changes: 40 additions & 0 deletions stack/pgadmin/initservers/servers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"Servers": {
"1": {
"Name": "keycloak",
"Group": "Servers",
"Host": "postgres-keycloak",
"Port": 5432,
"MaintenanceDB": "keycloak",
"Username": "keycloak-user",
"UseSSHTunnel": 0,
"TunnelPort": "22",
"TunnelAuthentication": 0,
"KerberosAuthentication": false,
"ConnectionParameters": {
"sslmode": "prefer",
"connect_timeout": 10,
"sslcert": "<STORAGE_DIR>/.postgresql/postgresql.crt",
"sslkey": "<STORAGE_DIR>/.postgresql/postgresql.key"
}
},
"2": {
"Name": "app-db",
"Group": "Servers",
"Host": "postgres-app",
"Port": 5432,
"MaintenanceDB": "postgres",
"Username": "todo",
"UseSSHTunnel": 0,
"TunnelPort": "22",
"TunnelAuthentication": 0,
"KerberosAuthentication": false,
"ConnectionParameters": {
"sslmode": "prefer",
"connect_timeout": 10,
"sslcert": "<STORAGE_DIR>/.postgresql/postgresql.crt",
"sslkey": "<STORAGE_DIR>/.postgresql/postgresql.key"
}
}
}
}

0 comments on commit 6f20801

Please sign in to comment.