run in this docker-compose.yml

This commit is contained in:
Benny
2023-03-07 19:27:20 +01:00
parent 6ebea85d85
commit 058e9bcec2
9 changed files with 44 additions and 50 deletions

View File

@@ -14,7 +14,7 @@ import pymongo
class Mongo:
def __init__(self):
self.client = pymongo.MongoClient(host=os.getenv("mongo") or "localhost", connect=False,
self.client = pymongo.MongoClient(host=os.getenv("MONGO", "localhost"), connect=False,
connectTimeoutMS=5000, serverSelectionTimeoutMS=5000)
self.db = self.client["zimuzu"]