b-jokes/.deploy/deploy-dev.yaml
Egor Matveev 3a35c77419 fix
2025-07-08 01:13:58 +04:00

75 lines
1.5 KiB
YAML

version: "3.4"
services:
b-jokes-nginx:
image: mathwave/sprint-repo:b-jokes-nginx
networks:
- b-jokes-net
- common-infra-nginx
deploy:
mode: replicated
restart_policy:
condition: any
update_config:
parallelism: 1
order: start-first
api:
image: mathwave/sprint-repo:b-jokes
networks:
- b-jokes-net
environment:
MONGO_HOST: "mongo.develop.sprinthub.ru"
MONGO_PASSWORD: $MONGO_PASSWORD_DEV
command: api
deploy:
mode: replicated
restart_policy:
condition: any
update_config:
parallelism: 1
order: start-first
poll:
image: mathwave/sprint-repo:b-jokes
environment:
MONGO_HOST: "mongo.develop.sprinthub.ru"
MONGO_PASSWORD: $MONGO_PASSWORD_DEV
command: poll
deploy:
mode: replicated
restart_policy:
condition: any
update_config:
parallelism: 1
order: start-first
bot:
image: mathwave/sprint-repo:b-jokes
environment:
MONGO_HOST: "mongo.develop.sprinthub.ru"
MONGO_PASSWORD: $MONGO_PASSWORD_DEV
command: bot
networks:
- configurator
- queues-development
deploy:
mode: replicated
restart_policy:
condition: any
update_config:
parallelism: 1
order: start-first
networks:
b-jokes-net:
driver: overlay
common-infra-nginx:
external: true
configurator:
external: true
queues-development:
external: true