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

connection settings in docker container are not working #279

Open
flashpixx opened this issue Oct 9, 2020 · 1 comment
Open

connection settings in docker container are not working #279

flashpixx opened this issue Oct 9, 2020 · 1 comment

Comments

@flashpixx
Copy link

I'm using in my docker-compose th following configuration for admin mongo:

  adminmongo:
    image: mrvautin/adminmongo:latest
    restart: always
    depends_on:
      - mongodb
    ports:
      - ${EXPOSE_PORT_MONGOADMIN:-1234}:1234
    environment:
      - HOST=adminmongo
      - CONN_NAME=mydb
      - DB_HOST=mongodb
      - DB_USERNAME=root
      - DB_PASSWORD=root

  mongodb:
    restart: always
    image: mongo:latest
    ports:
      - ${EXPOSE_PORT_GRAPHEXPLORER:-27017}:27017
    environment:
      - MONGO_INITDB_ROOT_USERNAME=root
      - MONGO_INITDB_ROOT_PASSWORD=root
      - MONGO_INITDB_DATABASE=mydb
    volumes:
      - ./mongodb/00-schema.js:/docker-entrypoint-initdb.d/00-schema.js

in general connection to the MongoDB database instance are quite working, but I need to setup the connection settings manually on the UI, so the environment variables on the container are not working

@PaulMonnery
Copy link

PaulMonnery commented Nov 24, 2020

Same issue here, env var are not working for auto connection

EDIT: found a solution, see #166

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