Public | Automated Build

Last pushed: 3 months ago
Short Description
pgweb in docker
Full Description

pgweb in docker

Before getting started, you'll need to have a running postgres database server.


Direct connection to a database server in a docker container

docker run --rm --name pgweb -p 8080:8080 --link <postgres_server_container:postgres> -e USER=<user> -e PASSWORD=<password> -e HOST=postgres -e PORT=<postgres_server_port> -e DATABASE=<postgres_database> okampfer/pgweb

Direct connection to a non-docker database server

docker run --rm --name pgweb -p 8080:8080 -e USER=<user> -e PASSWORD=<password> -e HOST=<postgres_server_host> -e PORT=<postgres_server_port> -e DATABASE=<postgres_database> okampfer/pgweb

Multiple database sessions mode (to connect to arbitary postgres servers)

docker run --rm --name pgweb -p 8080:8080 -e MULTIPLE_SESSIONS=1 okampfer/pgweb

Available environment variables

  • BIND_ADDRESS, custom binding address, defaults to
  • LISTEN_PORT, custom listening port, defaults to 8080.
  • USER, database user.
  • PASSWORD, database password.
  • HOST, database host.
  • PORT, database port.
  • DATABASE, postgres database to connect to.
  • SSL_MODE, ssl mode.
  • MULTIPLE_SESSIONS, to enable multiple database sessions in pgweb, must be a non-empty value.
Docker Pull Command
Source Repository