Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.77 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.77 KB

Passwordless pgAdmin4 Container Image (dcagatay/pwless-pgadmin4)

pgAdmin4 container image with password-less usage configuration.

Sample docker-compose.yml:

  pgadmin4:
    image: dcagatay/pwless-pgadmin4:latest
    ports:
      - 15432:80
    environment:
      POSTGRES_USER: my_user
      POSTGRES_PASSWORD: my_pass
      POSTGRES_HOST: "postgres"
      POSTGRES_PORT: "5432"
      # POSTGRES_DB: "*"

A quick example could be found in docker-compose.yml.

Environment variables

  • POSTGRES_USER: Postgres DB user name. (Required)
  • POSTGRES_PASSWORD: Postgres DB user password. (Required)
  • POSTGRES_HOST: PostgreSQL DB Host. (Default: postgres)
  • POSTGRES_PORT: PostgreSQL DB Port. (Default: 5432)
  • POSTGRES_DB: PostgreSQL DB name. (Default: *, Asterisk means any db.)

Multi Server Config

You can configure multiple hosts by adding enumerated environment variables, where X is the index of the host (starting from 1):

  • POSTGRES_USER_X: Postgres DB user name. (Required)
  • POSTGRES_PASSWORD_X: Postgres DB user password. (Required)
  • POSTGRES_HOST_X: PostgreSQL DB Host. (Required)
  • POSTGRES_PORT_X: PostgreSQL DB Port. (Default: 5432)
  • POSTGRES_DB_X: PostgreSQL DB name. (Default: *, meaning any db.)

A multi database example usage could be found in docker-compose-multi.yml.

Links