Table of Contents

pgAdmin4

STORAGE_DIR

Annoyingly, defaults to '/var/lib/pgadmin4/storage' which, in Dockerised environments, ends up buried where sudoers fear to tread. Moving it:

nano pgadmin4/config_local.py

Add:

  STORAGE_DIR = '/storage'

Then, perhaps, in docker-compose.yml:

volumes:
  - /home/seanys/Workspace/PostgreSQL/storage:/storage
environment:
  - STORAGE_DIR:/storage

References

How To Install And Configure pgAdmin 4 in Server Mode on Ubuntu 22.04