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

Invalid option in docker-compose.yml #151

Open
woodonggyu opened this issue Feb 12, 2022 · 5 comments
Open

Invalid option in docker-compose.yml #151

woodonggyu opened this issue Feb 12, 2022 · 5 comments

Comments

@woodonggyu
Copy link
Contributor

Hello.

When i tested, It wasn't work.
that's because is invalid option in docker-compose.

I fixed it like this:

# Use root/example as user/password credentials
# You may need to change the client uri to a format like ~> mongodb://user:pass@host:port/
# Mongo Express provides a simple lightweight web administrative interface for mongoDB
version: '3'
services:
  medallion:
    build:
      context: .
      dockerfile: docker_utils/Dockerfile
    command: [sh, -c, "medallion --host 0.0.0.0"]
    environment:
      MEDALLION_BACKEND_MODULE_CLASS: "MongoBackend"
      MEDALLION_BACKEND_MONGO_URI: "mongodb://root:example@mongo:27017/"
    ports:
      - 5000:5000
  mongo:
    image: mongo
    restart: always
    ports:
      - 27017:27017
    environment:
      MONGO_HOST: mongo
      MONGO_PORT: 27017
      MONGO_INITDB_ROOT_USERNAME: root
      MONGO_INITDB_ROOT_PASSWORD: example
  mongo-express:
    image: mongo-express
    restart: always
    ports:
      - 8081:8081
    environment:
      ME_CONFIG_MONGODB_SERVER: mongo
      ME_CONFIG_MONGODB_PORT: 27017
      ME_CONFIG_MONGODB_ENABLE_ADMIN: "true"
      ME_CONFIG_MONGODB_ADMINUSERNAME: root
      ME_CONFIG_MONGODB_ADMINPASSWORD: example
    depends_on:
      - mongo
@timebotdon
Copy link

Was having the same issue as well, only after searching around and seeing this was when I was able to solve it. Any active maintainers add this into the repo's docker-compose.yml?

@woodonggyu
Copy link
Contributor Author

@timebotdon I think they no longer maintain that repository :(

@clenk
Copy link
Contributor

clenk commented Apr 6, 2022

Hi @woodonggyu, @timebotdon sorry I haven't had time to test this. Is one of you able to make a pull request? You would also need to sign the CLA.

@woodonggyu
Copy link
Contributor Author

woodonggyu commented Apr 6, 2022

Hi @clenk I could make a pull request. how to sign the CLA?

added. When I tried to make pull request, It occur permission denied.

@clenk
Copy link
Contributor

clenk commented Apr 6, 2022

@woodonggyu If you fork this repo and make a pull request from there, the CLAassistant bot should post a comment with a link for you to sign it.

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

3 participants