pgAdmin4 - server mode container with persistent configuration
347
This is pgAdmin4 Docker container with the following specification:
The container persists all user data in /pgadmin-data which should be mounted as volume. On first run of the container the config_local.py file is generated on the volume. That file contains actual pgAdmin4 configuration. Any change to the config file will be effective after container restart. To reset the configuration just remove the file.
Ownership and group of files created within the data volume can be controlled by the following environment variables:
The container runs pgAdmin4 process as an unprivileged user identified with the above variables.
To build locally run the following
docker build -t pgadmin4:latest .
Then you can run it like this example:
docker run -it --rm -v /home/share/pgadmin-data:/pgadmin-data --net=host pgadmin4:latest
You should be able to see pgAdmin4 in browser once you go to http://localhost:5050 or to the actual host address where the above command was run.
Content type
Image
Digest
Size
96 MB
Last updated
about 9 years ago
Requires Docker Desktop 4.37.1 or later.