202 lines
5.4 KiB
YAML
202 lines
5.4 KiB
YAML
version: "3.4"
|
|
|
|
|
|
services:
|
|
|
|
sprint-nginx:
|
|
image: mathwave/sprint-repo:sprint-nginx
|
|
networks:
|
|
- net
|
|
- sprint-nginx
|
|
- common-infra-nginx
|
|
deploy:
|
|
mode: replicated
|
|
restart_policy:
|
|
condition: any
|
|
update_config:
|
|
parallelism: 1
|
|
order: start-first
|
|
|
|
web:
|
|
image: mathwave/sprint-repo:sprint
|
|
networks:
|
|
- net
|
|
environment:
|
|
DB_HOST: "pg.develop.sprinthub.ru"
|
|
RABBIT_HOST: "rabbitmq.develop.sprinthub.ru"
|
|
REDIS_HOST: "redis.develop.sprinthub.ru"
|
|
MINIO_HOST: "minio.develop.sprinthub.ru"
|
|
MINIO_SECRET_KEY: $MINIO_SECRET_KEY_DEV
|
|
RABBIT_PASSWORD: $RABBITMQ_PASSWORD_DEV
|
|
REDIS_PASSWORD: $REDIS_PASSWORD_DEV
|
|
DB_PASSWORD: $DB_PASSWORD_DEV
|
|
DEBUG: "true"
|
|
TELEGRAM_TOKEN: $TELEGRAM_TOKEN_DEV
|
|
VK_SERVICE_TOKEN: $VK_SERVICE_TOKEN
|
|
command: ./run.sh
|
|
deploy:
|
|
mode: replicated
|
|
restart_policy:
|
|
condition: any
|
|
update_config:
|
|
parallelism: 1
|
|
order: start-first
|
|
|
|
bot:
|
|
image: mathwave/sprint-repo:sprint
|
|
networks:
|
|
- net
|
|
environment:
|
|
DB_HOST: "pg.develop.sprinthub.ru"
|
|
RABBIT_HOST: "rabbitmq.develop.sprinthub.ru"
|
|
REDIS_HOST: "redis.develop.sprinthub.ru"
|
|
MINIO_HOST: "minio.develop.sprinthub.ru"
|
|
MINIO_SECRET_KEY: $MINIO_SECRET_KEY_DEV
|
|
RABBIT_PASSWORD: $RABBITMQ_PASSWORD_DEV
|
|
REDIS_PASSWORD: $REDIS_PASSWORD_DEV
|
|
DB_PASSWORD: $DB_PASSWORD_DEV
|
|
DEBUG: "true"
|
|
TELEGRAM_TOKEN: $TELEGRAM_TOKEN_DEV
|
|
command: ./manage.py bot
|
|
deploy:
|
|
mode: replicated
|
|
restart_policy:
|
|
condition: any
|
|
update_config:
|
|
parallelism: 1
|
|
order: stop-first
|
|
|
|
outbox:
|
|
image: mathwave/sprint-repo:sprint
|
|
networks:
|
|
- net
|
|
command: ./manage.py outbox
|
|
environment:
|
|
DB_HOST: "pg.develop.sprinthub.ru"
|
|
RABBIT_HOST: "rabbitmq.develop.sprinthub.ru"
|
|
REDIS_HOST: "redis.develop.sprinthub.ru"
|
|
MINIO_HOST: "minio.develop.sprinthub.ru"
|
|
MINIO_SECRET_KEY: $MINIO_SECRET_KEY_DEV
|
|
RABBIT_PASSWORD: $RABBITMQ_PASSWORD_DEV
|
|
REDIS_PASSWORD: $REDIS_PASSWORD_DEV
|
|
DB_PASSWORD: $DB_PASSWORD_DEV
|
|
DEBUG: "true"
|
|
TELEGRAM_TOKEN: $TELEGRAM_TOKEN_DEV
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: any
|
|
update_config:
|
|
parallelism: 1
|
|
order: start-first
|
|
|
|
checker_cleaner:
|
|
image: mathwave/sprint-repo:sprint
|
|
networks:
|
|
- net
|
|
environment:
|
|
DB_HOST: "pg.develop.sprinthub.ru"
|
|
RABBIT_HOST: "rabbitmq.develop.sprinthub.ru"
|
|
REDIS_HOST: "redis.develop.sprinthub.ru"
|
|
MINIO_HOST: "minio.develop.sprinthub.ru"
|
|
MINIO_SECRET_KEY: $MINIO_SECRET_KEY_DEV
|
|
RABBIT_PASSWORD: $RABBITMQ_PASSWORD_DEV
|
|
REDIS_PASSWORD: $REDIS_PASSWORD_DEV
|
|
DB_PASSWORD: $DB_PASSWORD_DEV
|
|
DEBUG: "true"
|
|
TELEGRAM_TOKEN: $TELEGRAM_TOKEN_DEV
|
|
command: ./manage.py checker_cleaner
|
|
deploy:
|
|
mode: replicated
|
|
restart_policy:
|
|
condition: any
|
|
update_config:
|
|
parallelism: 1
|
|
order: stop-first
|
|
|
|
worker:
|
|
image: mathwave/sprint-repo:sprint
|
|
networks:
|
|
- net
|
|
command: ./manage.py worker
|
|
environment:
|
|
DB_HOST: "pg.develop.sprinthub.ru"
|
|
RABBIT_HOST: "rabbitmq.develop.sprinthub.ru"
|
|
REDIS_HOST: "redis.develop.sprinthub.ru"
|
|
MINIO_HOST: "minio.develop.sprinthub.ru"
|
|
MINIO_SECRET_KEY: $MINIO_SECRET_KEY_DEV
|
|
RABBIT_PASSWORD: $RABBITMQ_PASSWORD_DEV
|
|
REDIS_PASSWORD: $REDIS_PASSWORD_DEV
|
|
DB_PASSWORD: $DB_PASSWORD_DEV
|
|
DEBUG: "true"
|
|
TELEGRAM_TOKEN: $TELEGRAM_TOKEN_DEV
|
|
volumes:
|
|
- /tmp:/tmp
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: any
|
|
update_config:
|
|
parallelism: 1
|
|
order: start-first
|
|
|
|
file_generator:
|
|
image: mathwave/sprint-repo:sprint
|
|
networks:
|
|
- net
|
|
command: ./manage.py file_generator
|
|
environment:
|
|
DB_HOST: "pg.develop.sprinthub.ru"
|
|
RABBIT_HOST: "rabbitmq.develop.sprinthub.ru"
|
|
REDIS_HOST: "redis.develop.sprinthub.ru"
|
|
MINIO_HOST: "minio.develop.sprinthub.ru"
|
|
MINIO_SECRET_KEY: $MINIO_SECRET_KEY_DEV
|
|
RABBIT_PASSWORD: $RABBITMQ_PASSWORD_DEV
|
|
REDIS_PASSWORD: $REDIS_PASSWORD_DEV
|
|
DB_PASSWORD: $DB_PASSWORD_DEV
|
|
DEBUG: "true"
|
|
TELEGRAM_TOKEN: $TELEGRAM_TOKEN_DEV
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: any
|
|
update_config:
|
|
parallelism: 1
|
|
order: start-first
|
|
|
|
notification_manager:
|
|
image: mathwave/sprint-repo:sprint
|
|
networks:
|
|
- net
|
|
command: ./manage.py notification_manager
|
|
environment:
|
|
DB_HOST: "pg.develop.sprinthub.ru"
|
|
RABBIT_HOST: "rabbitmq.develop.sprinthub.ru"
|
|
REDIS_HOST: "redis.develop.sprinthub.ru"
|
|
MINIO_HOST: "minio.develop.sprinthub.ru"
|
|
MINIO_SECRET_KEY: $MINIO_SECRET_KEY_DEV
|
|
RABBIT_PASSWORD: $RABBITMQ_PASSWORD_DEV
|
|
REDIS_PASSWORD: $REDIS_PASSWORD_DEV
|
|
DB_PASSWORD: $DB_PASSWORD_DEV
|
|
DEBUG: "true"
|
|
TELEGRAM_TOKEN: $TELEGRAM_TOKEN_DEV
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: any
|
|
update_config:
|
|
parallelism: 1
|
|
order: start-first
|
|
|
|
networks:
|
|
net:
|
|
driver: overlay
|
|
sprint-nginx:
|
|
external: true
|
|
common-infra-nginx:
|
|
external: true |