Merge pull request 'fix' (#39) from master into prod

Reviewed-on: #39
This commit is contained in:
emmatveev 2024-12-29 13:28:54 +03:00
commit 2268367a16
3 changed files with 4 additions and 4 deletions

View File

@ -10,8 +10,6 @@ services:
MONGO_HOST: "mongo.sprinthub.ru"
MONGO_PASSWORD: $MONGO_PASSWORD_PROD
STAGE: "production"
ports:
- 1239:1239
deploy:
mode: replicated
restart_policy:

View File

@ -9,6 +9,5 @@ RUN pip install -r requirements.txt
COPY . .
ENV PYTHONUNBUFFERED=1
EXPOSE 1239
ENTRYPOINT ["fastapi", "run", "main.py", "--port", "1239"]
ENTRYPOINT ["python", "main.py"]

View File

@ -22,3 +22,6 @@ async def unicorn_exception_handler(request: fastapi.Request, exc: Exception):
)
mongo.create_indexes()
if __name__ == '__main__':
uvicorn.run(app, host="0.0.0.0", port=1239)