Skip to content

Commit

Permalink
chore: wip -- won't map files while other nodejs image do with the sa…
Browse files Browse the repository at this point in the history
…me syntax
  • Loading branch information
kasir-barati committed Nov 11, 2024
1 parent bdd62e3 commit 58e0c6e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ services:
retries: 5

pgAdmin:
image: dpage/pgadmin4:6.5
image: dpage/pgadmin4:8.12
restart: always
depends_on:
- postgres
environment:
PGADMIN_DEFAULT_PASSWORD: admin
PGADMIN_DEFAULT_EMAIL: [email protected]
network_mode: host
volumes:
- ./servers.json:/tmp/servers.json
- ./preferences.json:/tmp/preferences.json

volumes:
postgres:
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"preferences": {
"misc:themes:theme": "dark",
"browser:display:show_system_objects": true,
"browser:display:confirm_on_refresh_close": false,
"browser:display:show_user_defined_templates": true
}
}
16 changes: 16 additions & 0 deletions docker-compose-files/postgres/postgres-pgadmin/servers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"Servers": {
"1": {
"Name": "postgres",
"Group": "GroupName",
"Port": 5432,
"Username": "username",
"Host": "localhost",
"SSLMode": "prefer",
"MaintenanceDB": "db-name",
"BGColor": "#1f1f1f",
"FGColor": "#000000",
"Comment": "This server will connect to the instance we've created in our compose file."
}
}
}

0 comments on commit 58e0c6e

Please sign in to comment.