/pgadmin4-docker-arm

pgadmin4 Docker-Image, compatible with arm (e.g. raspberry pi)

Primary LanguagePythonMIT LicenseMIT

pgadmin4-docker-arm

Docker-Images for pgAdmin which runs on ARM, e.g. Raspberry pi 3 / 4

Inspired by https://github.com/thaJeztah/pgadmin4-docker

Dockerhub: https://hub.docker.com/repository/docker/benuhx/pgadmin4-pi

Example Docker-Compose

version: "3.4"
services:
    pgadmin:
      image: benuhx/pgadmin4-pi:latest
      container_name: pgadmin
      restart: always
      volumes:
        - type: bind
          source: "/home/pi/pgadmin"
          target: "/var/lib/pgadmin"
      environment:
        PGADMIN_SETUP_EMAIL: "mail@pg.de"
        PGADMIN_SETUP_PASSWORD: "TdiEbGOGHn1wQQAWhvrnZNeEVD8JDpjx"
      ports:
        - 5050:5050

Build Docker-Image:

  1. Build Image with: docker build -f Dockerfile -t pgadmin4-pi.
  2. Modify docker-compose.yml (example below)
  3. If you want to use a volume bind mount (useful for persisting the pgadmin configs), modify directory owner with:
sudo chown -R 1000:50 /home/pi/pgadmin

Replace /home/pi/pgadmin with your path. 1000:50 is defined in the Dockerfile

  1. Run with with docker-compose up. pgAdmin takes ~ 45s for startup on Raspberry Pi 3