Benutzer-Werkzeuge

Webseiten-Werkzeuge


content:serverbasics:docker-pgadmin
This version is outdated by a newer approved version.DiffThis version (2025/04/11 00:35) was approved by obel1x.

Dies ist eine alte Version des Dokuments!


Docker: PGAdmin

PGAdmin is a WEB- GUI for Postgres Databases e.g. for Nextcloud.

To Setup that Service, create a Folder named pgadmin in your docker_compose directory you created before when setting up docker

Create the docker-compose.yml like this:

services:
  pgadmin:
    image: dpage/pgadmin4
    environment:
      PGADMIN_DEFAULT_EMAIL: admin@domain.tld
      PGADMIN_DEFAULT_PASSWORD: NEWPASSWORD
    volumes:
      - pgadmin_data:/var/lib/pgadmin/
    networks:
      - nextcloud-aio

volumes:
  pgadmin_data:
    driver: local

networks:
  nextcloud-aio:
    external: true

Caddy

Append to the Caddyfile of docker-caddy

# pgadmin - Postgres- Administration
https://pgadmin.domain.tld:443 {
        header Strict-Transport-Security max-age=31536000;
        reverse_proxy servername-pgadmin-1:80
}

Thats all. Restart Caddy Container and Navigate to pgadmin - you need to configure your Server with internal Docker Servicenames e.g Server Hostname nextcloud-aio-database. For Nextcloud, the Database- Password will be in the Volume Nextcloud in the config.php of nextcloud.

content/serverbasics/docker-pgadmin.1744324530.txt.gz · Zuletzt geändert: von obel1x

Falls nicht anders bezeichnet, ist der Inhalt dieses Wikis unter der folgenden Lizenz veröffentlicht: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki