From ef67175f2a86b20cb16f9dda5b62ee5ad537b697 Mon Sep 17 00:00:00 2001 From: woodonggyu Date: Thu, 7 Apr 2022 21:29:09 +0900 Subject: [PATCH] fix: Invalid option and add environment variables --- docker-compose.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index d4139d1..f65048b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: