This commit is contained in:
Egor Matveev 2022-03-15 23:14:34 +03:00
parent 80e0867526
commit 98bf83dbbf

View File

@ -127,7 +127,6 @@ services:
worker: worker:
image: mathwave/sprint-repo:sprint image: mathwave/sprint-repo:sprint
privileged: true
command: ./manage.py receive command: ./manage.py receive
environment: environment:
SOLUTIONS_ROOT_EXTERNAL: "/sprint-data/data/solutions" SOLUTIONS_ROOT_EXTERNAL: "/sprint-data/data/solutions"
@ -151,6 +150,28 @@ services:
restart_policy: restart_policy:
condition: on-failure condition: on-failure
file_generator:
image: mathwave/sprint-repo:sprint
command: ./manage.py file_generator
environment:
SOLUTIONS_ROOT_EXTERNAL: "/sprint-data/data/solutions"
DB_HOST: $DB_HOST
DB_PASSWORD: $DB_PASSWORD
RABBIT_HOST: $RABBIT_HOST
FS_HOST: $FS_HOST
DEBUG: $DEBUG
TELEGRAM_TOKEN: $TELEGRAM_TOKEN
depends_on:
- web
- rabbitmq
- migrations
- storage
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
apply-languages: apply-languages:
image: mathwave/sprint-repo:sprint image: mathwave/sprint-repo:sprint
command: ./manage.py apply_languages command: ./manage.py apply_languages