This commit is contained in:
Administrator
2022-10-21 13:43:59 +03:00
commit b7ef588b34
17 changed files with 779 additions and 0 deletions

51
.deploy/deploy-prod.yaml Normal file
View File

@@ -0,0 +1,51 @@
version: "3.4"
services:
bot:
image: mathwave/sprint-repo:ruz-bot
environment:
MONGO_HOST: "mongo.sprinthub.ru"
MONGO_PASSWORD: $MONGO_PASSWORD_PROD
TELEGRAM_TOKEN: $TELEGRAM_TOKEN_PROD
DEBUG: false
command: bot
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"
MONGO_PASSWORD: $MONGO_PASSWORD_PROD
DEBUG: false
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"
MONGO_PASSWORD: $MONGO_PASSWORD_PROD
TELEGRAM_TOKEN: $TELEGRAM_TOKEN_PROD
DEBUG: false
command: notify
deploy:
mode: replicated
restart_policy:
condition: any
update_config:
parallelism: 1
order: start-first