Compare commits

...

3 Commits

Author SHA1 Message Date
b6b04ed37a Update .deploy/deploy-prod.yaml
All checks were successful
Deploy Dev / Build (pull_request) Successful in 36s
Deploy Dev / Push (pull_request) Successful in 19s
Deploy Dev / Deploy dev (pull_request) Successful in 8s
2025-09-14 10:22:19 +03:00
b2857d68c1 Update .deploy/deploy-dev.yaml 2025-09-14 10:22:03 +03:00
Egor Matveev
047223ec31 fix
All checks were successful
Deploy Dev / Build (pull_request) Successful in 11s
Deploy Dev / Push (pull_request) Successful in 31s
Deploy Dev / Deploy dev (pull_request) Successful in 12s
Deploy Prod / Build (pull_request) Successful in 5s
Deploy Prod / Push (pull_request) Successful in 7s
Deploy Prod / Deploy prod (pull_request) Successful in 7s
2024-12-29 13:28:36 +03:00
4 changed files with 6 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ services:
networks:
- queues-development
environment:
MONGO_HOST: "mongo.develop.sprinthub.ru"
MONGO_HOST: "mongo.dev.chocomarsh.com"
MONGO_PASSWORD: $MONGO_PASSWORD_DEV
STAGE: "development"
deploy:

View File

@@ -7,11 +7,9 @@ services:
networks:
- queues
environment:
MONGO_HOST: "mongo.sprinthub.ru"
MONGO_HOST: "mongo.chocomarsh.com"
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)