Compare commits

..

No commits in common. "2268367a1672056787f714373a3e4699735a8102" and "437eacb773ed3ddcaa6ce6c9e7177236243aa676" have entirely different histories.

3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

@ -22,6 +22,3 @@ 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)