diff --git a/docker-compose-files/postgres/postgres-pgadmin/compose.host.yml b/docker-compose-files/postgres/postgres-pgadmin/compose.host.yml index 86ce169..94fcc8d 100755 --- a/docker-compose-files/postgres/postgres-pgadmin/compose.host.yml +++ b/docker-compose-files/postgres/postgres-pgadmin/compose.host.yml @@ -14,7 +14,7 @@ services: retries: 5 pgAdmin: - image: dpage/pgadmin4:6.5 + image: dpage/pgadmin4:8.12 restart: always depends_on: - postgres @@ -22,6 +22,9 @@ services: PGADMIN_DEFAULT_PASSWORD: admin PGADMIN_DEFAULT_EMAIL: admin@admin.com network_mode: host + volumes: + - ./servers.json:/tmp/servers.json + - ./preferences.json:/tmp/preferences.json volumes: postgres: diff --git a/docker-compose-files/postgres/postgres-pgadmin/preferences.json b/docker-compose-files/postgres/postgres-pgadmin/preferences.json new file mode 100644 index 0000000..28ed1f7 --- /dev/null +++ b/docker-compose-files/postgres/postgres-pgadmin/preferences.json @@ -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 + } +} diff --git a/docker-compose-files/postgres/postgres-pgadmin/servers.json b/docker-compose-files/postgres/postgres-pgadmin/servers.json new file mode 100644 index 0000000..9da686f --- /dev/null +++ b/docker-compose-files/postgres/postgres-pgadmin/servers.json @@ -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." + } + } +}