version: "3.4" services: bot: image: mathwave/sprint-repo:ruz-bot environment: MONGO_HOST: "mongo.sprinthub.ru" MONGO_PASSWORD: $MONGO_PASSWORD_PROD TELEGRAM_TOKEN: $TELEGRAM_TOKEN_PROD DEBUG: "false" command: bot deploy: mode: replicated restart_policy: condition: any placement: constraints: - node.role == worker - node.labels.zone == ru update_config: parallelism: 1 order: start-first fetch: image: mathwave/sprint-repo:ruz-bot environment: MONGO_HOST: "mongo.sprinthub.ru" MONGO_PASSWORD: $MONGO_PASSWORD_PROD TELEGRAM_TOKEN: $TELEGRAM_TOKEN_PROD DEBUG: "false" command: fetch deploy: mode: replicated restart_policy: condition: any placement: constraints: - node.role == worker - node.labels.zone == ru update_config: parallelism: 1 order: start-first notify: image: mathwave/sprint-repo:ruz-bot environment: MONGO_HOST: "mongo.sprinthub.ru" MONGO_PASSWORD: $MONGO_PASSWORD_PROD TELEGRAM_TOKEN: $TELEGRAM_TOKEN_PROD DEBUG: "false" command: notify deploy: mode: replicated restart_policy: condition: any placement: constraints: - node.role == worker - node.labels.zone == ru update_config: parallelism: 1 order: start-first ruz-bot-nginx: image: mathwave/sprint-repo:ruz-bot networks: - common-infra-nginx environment: MONGO_HOST: "mongo.sprinthub.ru" MONGO_PASSWORD: $MONGO_PASSWORD_PROD TELEGRAM_TOKEN: $TELEGRAM_TOKEN_PROD DEBUG: "false" command: api deploy: mode: replicated restart_policy: condition: any placement: constraints: - node.role == worker - node.labels.zone == ru update_config: parallelism: 1 order: start-first networks: common-infra-nginx: external: true