Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server is not listed in the admin UI by default docker-compose through environment variables #7462

Closed
nagkumar opened this issue May 8, 2024 · 5 comments
Labels

Comments

@nagkumar
Copy link

nagkumar commented May 8, 2024

services:
    postgres:
        container_name: postgres
        image: postgres:15.2-alpine
        environment:
            - POSTGRES_USER=postgres
            - POSTGRES_PASSWORD=postgres
            - POSTGRES_DB=postgres
        ports:
            - "15432:5432"
        restart: unless-stopped

    pgadmin:
        container_name: pgadmin
        image: dpage/pgadmin4
        restart: always
        environment:
            PGHOST: postgres
            PGADMIN_DEFAULT_EMAIL: admin@admin.com
            PGADMIN_DEFAULT_USER: postgres
            PGADMIN_DEFAULT_PASSWORD: postgres
            PGADMIN_DEFAULT_DB: postgres

        ports:
            - "5050:80"

PGAdmin UI does not list the postgress server.. though PGHOST value is given in pgadmin config.. it is better pgadmin support auto configure container db automatically

image
@nagkumar nagkumar added the Bug label May 8, 2024
@nagkumar
Copy link
Author

nagkumar commented May 8, 2024

Tried with other environment variables too that also does not help..

e.g


      PGADMIN_SERVER_MODE: "True"
      PGADMIN_DEFAULT_SERVER: postgres
      POSTGRES_DB_SERVER_HOST: postgres
      POSTGRES_DB_SERVER_PORT: 5432
      POSTGRES_DB_SERVER_MAINTENANCE_DATABASE: postgres
      POSTGRES_DB_SERVER_USERNAME: postgres
      POSTGRES_DB_SERVER_PASSWORD: postgres

@yogeshmahajan-1903
Copy link
Contributor

@nagkumar
To load servers to pgadmin , you need to specify server details in the json file and need to pass/map file path to environment variable of pgadmin service. Please refer to this link. or you can add server from UI.

@nagkumar
Copy link
Author

nagkumar commented May 9, 2024

pass/map file path to environment variable of pgadmin service

instead of file approach looking for special environment variable that I can define as part of pgadmin install to make this automatic. Is that possible.. if not wish that feature come in..

server from UI
I want to avoid this step let docker-compose do that for me

@nagkumar nagkumar removed their assignment May 9, 2024
@nagkumar nagkumar changed the title server is not listed in the admin UI by default docker-compose server is not listed in the admin UI by default docker-compose through environment variables May 9, 2024
@khushboovashi
Copy link
Contributor

We are not planning to implement this.

@khushboovashi khushboovashi closed this as not planned Won't fix, can't repro, duplicate, stale May 17, 2024
@nagkumar
Copy link
Author

any reason for not seeing the priority..

In the micro services world trying to configure each admin manually can be truly painful and error prone, pgadmin can't be without postgre server.. wish some importance given to automate smartly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants