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

fix: Invalid option and add environment variables #155

Merged
merged 1 commit into from
May 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,30 @@ services:
context: .
dockerfile: docker_utils/Dockerfile
command: [sh, -c, "medallion --host 0.0.0.0"]
env:
environment:
MEDALLION_BACKEND_MODULE_CLASS: "MongoBackend"
MEDALLION_BACKEND_MONGO_URI: "mongodb://root:example@mongo:27017/"
ports:
- 5000:5000
- "5000:5000"
mongo:
image: mongo
restart: always
ports:
- 27017:27017
- "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
- "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:
Expand Down