80 lines
1.7 KiB
YAML
80 lines
1.7 KiB
YAML
version: "3.4"
|
|
|
|
|
|
services:
|
|
|
|
poll:
|
|
image: mathwave/sprint-repo:pizda-bot
|
|
command: poll
|
|
environment:
|
|
TELEGRAM_TOKEN: $TELEGRAM_TOKEN_DEV
|
|
STAGE: "development"
|
|
networks:
|
|
- queues-development
|
|
deploy:
|
|
mode: replicated
|
|
restart_policy:
|
|
condition: any
|
|
update_config:
|
|
parallelism: 1
|
|
order: start-first
|
|
|
|
worker:
|
|
image: mathwave/sprint-repo:pizda-bot
|
|
command: worker
|
|
environment:
|
|
MONGO_HOST: "mongo.develop.sprinthub.ru"
|
|
MONGO_PASSWORD: $MONGO_PASSWORD_DEV
|
|
STAGE: "development"
|
|
networks:
|
|
- queues-development
|
|
- configurator
|
|
deploy:
|
|
mode: replicated
|
|
restart_policy:
|
|
condition: any
|
|
update_config:
|
|
parallelism: 1
|
|
order: start-first
|
|
|
|
mailbox:
|
|
image: mathwave/sprint-repo:pizda-bot
|
|
command: mailbox
|
|
environment:
|
|
TELEGRAM_TOKEN: $TELEGRAM_TOKEN_DEV
|
|
STAGE: "development"
|
|
networks:
|
|
- queues-development
|
|
deploy:
|
|
mode: replicated
|
|
restart_policy:
|
|
condition: any
|
|
update_config:
|
|
parallelism: 1
|
|
order: start-first
|
|
|
|
pizda-bot-nginx:
|
|
image: mathwave/sprint-repo:pizda-bot
|
|
command: api
|
|
environment:
|
|
TELEGRAM_TOKEN: $TELEGRAM_TOKEN_DEV
|
|
MONGO_HOST: "mongo.develop.sprinthub.ru"
|
|
MONGO_PASSWORD: $MONGO_PASSWORD_DEV
|
|
PLATFORM_SECURITY_TOKEN: $PLATFORM_SECURITY_TOKEN
|
|
STAGE: "development"
|
|
networks:
|
|
- common-infra-nginx-development
|
|
deploy:
|
|
mode: replicated
|
|
restart_policy:
|
|
condition: any
|
|
update_config:
|
|
parallelism: 1
|
|
order: start-first
|
|
|
|
networks:
|
|
common-infra-nginx-development:
|
|
external: true
|
|
queues-development:
|
|
external: true
|