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

[bug?] MONGOKU_DEFAULT_HOST - Not able to set it correctly #59

Open
avico78 opened this issue Mar 16, 2021 · 2 comments
Open

[bug?] MONGOKU_DEFAULT_HOST - Not able to set it correctly #59

avico78 opened this issue Mar 16, 2021 · 2 comments

Comments

@avico78
Copy link

avico78 commented Mar 16, 2021

configuring the Mongo DB via MogoKU GUI:
clicking on "Add server" > "admin:admin@mongo_db:27017" -> connection set .

it doesn't work using the variable MONGOKU_DEFAULT_HOST in docker-compose .

docker-compose:

  mongo_gui:
    image: huggingface/mongoku
    container_name: mongo_gui
    ports:
      - "${MONGOGUI_PORT:-3100}:3100"
    networks:
      - dockers_default
    depends_on:
        - mongo_db
    environment:
      - MONGOKU_DEFAULT_HOST="mongodb://admin:admin@mongo_db:27017"

Tried also:
MONGOKU_DEFAULT_HOST="mongo_db://admin:admin@mongo_db:27017"
MONGOKU_DEFAULT_HOST="mongodb://admin:admin@localhost:27017"
MONGOKU_DEFAULT_HOST="admin:admin@mongo_db:27017"

It doesn't connect and there's an error "unescaped slash in user info section "

@vkruglikov
Copy link

+1

@vkruglikov
Copy link

I found solutions

You need to pass the argument authMechanism

    environment:
      - MONGOKU_DEFAULT_HOST="mongodb://admin:admin@mongo_db:27017/?authMechanism=SCRAM-SHA-1"

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

No branches or pull requests

2 participants