deploy
This commit is contained in:
parent
80e0867526
commit
98bf83dbbf
@ -127,7 +127,6 @@ services:
|
||||
|
||||
worker:
|
||||
image: mathwave/sprint-repo:sprint
|
||||
privileged: true
|
||||
command: ./manage.py receive
|
||||
environment:
|
||||
SOLUTIONS_ROOT_EXTERNAL: "/sprint-data/data/solutions"
|
||||
@ -151,6 +150,28 @@ services:
|
||||
restart_policy:
|
||||
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:
|
||||
image: mathwave/sprint-repo:sprint
|
||||
command: ./manage.py apply_languages
|
||||
|
Loading…
Reference in New Issue
Block a user