fix
All checks were successful
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

This commit is contained in:
emmatveev 2024-11-22 01:56:40 +03:00
parent 4fb1043a63
commit 2dd497c8e2
5 changed files with 1 additions and 40 deletions

View File

@ -2,22 +2,6 @@ version: "3.4"
services: services:
queues-nginx:
image: mathwave/sprint-repo:queues
networks:
- common-infra-nginx
environment:
MONGO_HOST: "mongo.develop.sprinthub.ru"
MONGO_PASSWORD: $MONGO_PASSWORD_DEV
QUEUES_TOKEN: $QUEUES_TOKEN_DEV
deploy:
mode: replicated
restart_policy:
condition: any
update_config:
parallelism: 1
order: start-first
queues: queues:
image: mathwave/sprint-repo:queues image: mathwave/sprint-repo:queues
networks: networks:
@ -25,7 +9,6 @@ services:
environment: environment:
MONGO_HOST: "mongo.develop.sprinthub.ru" MONGO_HOST: "mongo.develop.sprinthub.ru"
MONGO_PASSWORD: $MONGO_PASSWORD_DEV MONGO_PASSWORD: $MONGO_PASSWORD_DEV
NEW: "true"
deploy: deploy:
mode: replicated mode: replicated
restart_policy: restart_policy:

View File

@ -2,22 +2,6 @@ version: "3.4"
services: services:
queues-nginx:
image: mathwave/sprint-repo:queues
networks:
- common-infra-nginx
environment:
MONGO_HOST: "mongo.sprinthub.ru"
MONGO_PASSWORD: $MONGO_PASSWORD_PROD
QUEUES_TOKEN: $QUEUES_TOKEN_PROD
deploy:
mode: replicated
restart_policy:
condition: any
update_config:
parallelism: 1
order: start-first
queues: queues:
image: mathwave/sprint-repo:queues image: mathwave/sprint-repo:queues
networks: networks:
@ -26,7 +10,6 @@ services:
environment: environment:
MONGO_HOST: "mongo.sprinthub.ru" MONGO_HOST: "mongo.sprinthub.ru"
MONGO_PASSWORD: $MONGO_PASSWORD_PROD MONGO_PASSWORD: $MONGO_PASSWORD_PROD
NEW: "true"
deploy: deploy:
mode: replicated mode: replicated
restart_policy: restart_policy:

View File

@ -40,5 +40,4 @@ jobs:
- name: deploy - name: deploy
env: env:
MONGO_PASSWORD_DEV: ${{ secrets.MONGO_PASSWORD_DEV }} MONGO_PASSWORD_DEV: ${{ secrets.MONGO_PASSWORD_DEV }}
QUEUES_TOKEN_DEV: ${{ secrets.QUEUES_TOKEN_DEV }}
run: docker stack deploy --with-registry-auth -c ./.deploy/deploy-dev.yaml infra run: docker stack deploy --with-registry-auth -c ./.deploy/deploy-dev.yaml infra

View File

@ -40,5 +40,4 @@ jobs:
- name: deploy - name: deploy
env: env:
MONGO_PASSWORD_PROD: ${{ secrets.MONGO_PASSWORD_PROD }} MONGO_PASSWORD_PROD: ${{ secrets.MONGO_PASSWORD_PROD }}
QUEUES_TOKEN_PROD: ${{ secrets.QUEUES_TOKEN_PROD }}
run: docker stack deploy --with-registry-auth -c ./.deploy/deploy-prod.yaml infra run: docker stack deploy --with-registry-auth -c ./.deploy/deploy-prod.yaml infra

View File

@ -1,6 +1,5 @@
import fastapi import fastapi
import uvicorn import uvicorn
import os
from app.routers import take from app.routers import take
from app.routers import put from app.routers import put
@ -19,6 +18,4 @@ mongo.create_indexes()
if __name__ == '__main__': if __name__ == '__main__':
if os.getenv('NEW') == 'true': uvicorn.run(app, host="0.0.0.0", port=1239)
uvicorn.run(app, host="0.0.0.0", port=1239)
uvicorn.run(app, host="0.0.0.0", port=1238)