ruz-bot/.deploy/deploy-prod.yaml
emmatveev 156e1407ed
All checks were successful
Deploy Prod / Build (pull_request) Successful in 5s
Deploy Prod / Push (pull_request) Successful in 8s
Deploy Prod / Deploy prod (pull_request) Successful in 14s
fix
2024-11-27 19:11:14 +03:00

88 lines
1.8 KiB
YAML

version: "3.4"
services:
worker:
image: mathwave/sprint-repo:ruz-bot
environment:
MONGO_HOST: "mongo.sprinthub.ru"
STAGE: "production"
MONGO_PASSWORD: $MONGO_PASSWORD_PROD
networks:
- queues
- configurator
command: worker
deploy:
mode: replicated
restart_policy:
condition: any
update_config:
parallelism: 1
order: start-first
fetch:
image: mathwave/sprint-repo:ruz-bot
environment:
MONGO_HOST: "mongo.sprinthub.ru"
STAGE: "production"
MONGO_PASSWORD: $MONGO_PASSWORD_PROD
DEBUG: "false"
networks:
- queues
- configurator
command: fetch
deploy:
mode: replicated
restart_policy:
condition: any
update_config:
parallelism: 1
order: start-first
notify:
image: mathwave/sprint-repo:ruz-bot
environment:
MONGO_HOST: "mongo.sprinthub.ru"
STAGE: "production"
MONGO_PASSWORD: $MONGO_PASSWORD_PROD
DEBUG: "false"
networks:
- queues
- configurator
command: notify
deploy:
mode: replicated
restart_policy:
condition: any
update_config:
parallelism: 1
order: start-first
ruz-bot-nginx:
image: mathwave/sprint-repo:ruz-bot
networks:
- common-infra-nginx
- configurator
environment:
MONGO_HOST: "mongo.sprinthub.ru"
STAGE: "production"
MONGO_PASSWORD: $MONGO_PASSWORD_PROD
DEBUG: "false"
command: api
deploy:
mode: replicated
restart_policy:
condition: any
update_config:
parallelism: 1
order: start-first
networks:
common-infra-nginx:
external: true
queues:
external: true
configurator:
external: true