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.sprinthub.ru" RABBIT_HOST: "rabbitmq.sprinthub.ru" REDIS_HOST: "redis.sprinthub.ru" MINIO_HOST: "minio.sprinthub.ru" MINIO_SECRET_KEY: $MINIO_SECRET_KEY_PROD RABBIT_PASSWORD: $RABBITMQ_PASSWORD_PROD REDIS_PASSWORD: $REDIS_PASSWORD_PROD DB_PASSWORD: $DB_PASSWORD_PROD DEBUG: "false" TELEGRAM_TOKEN: $TELEGRAM_TOKEN_PROD 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.sprinthub.ru" RABBIT_HOST: "rabbitmq.sprinthub.ru" REDIS_HOST: "redis.sprinthub.ru" MINIO_HOST: "minio.sprinthub.ru" MINIO_SECRET_KEY: $MINIO_SECRET_KEY_PROD RABBIT_PASSWORD: $RABBITMQ_PASSWORD_PROD REDIS_PASSWORD: $REDIS_PASSWORD_PROD DB_PASSWORD: $DB_PASSWORD_PROD DEBUG: "false" TELEGRAM_TOKEN: $TELEGRAM_TOKEN_PROD SENTRY_TOKEN: $SENTRY_TOKEN command: ./manage.py bot deploy: mode: replicated replicas: 1 restart_policy: condition: any update_config: parallelism: 1 order: stop-first outbox: image: mathwave/sprint-repo:sprint networks: - net environment: DB_HOST: "pg.sprinthub.ru" RABBIT_HOST: "rabbitmq.sprinthub.ru" REDIS_HOST: "redis.sprinthub.ru" MINIO_HOST: "minio.sprinthub.ru" MINIO_SECRET_KEY: $MINIO_SECRET_KEY_PROD RABBIT_PASSWORD: $RABBITMQ_PASSWORD_PROD REDIS_PASSWORD: $REDIS_PASSWORD_PROD DB_PASSWORD: $DB_PASSWORD_PROD DEBUG: "false" TELEGRAM_TOKEN: $TELEGRAM_TOKEN_PROD SENTRY_TOKEN: $SENTRY_TOKEN command: ./manage.py outbox deploy: mode: replicated replicas: 1 restart_policy: condition: any update_config: parallelism: 1 order: stop-first checker_cleaner: image: mathwave/sprint-repo:sprint networks: - net environment: DB_HOST: "pg.sprinthub.ru" RABBIT_HOST: "rabbitmq.sprinthub.ru" REDIS_HOST: "redis.sprinthub.ru" MINIO_HOST: "minio.sprinthub.ru" MINIO_SECRET_KEY: $MINIO_SECRET_KEY_PROD RABBIT_PASSWORD: $RABBITMQ_PASSWORD_PROD REDIS_PASSWORD: $REDIS_PASSWORD_PROD DB_PASSWORD: $DB_PASSWORD_PROD DEBUG: "false" TELEGRAM_TOKEN: $TELEGRAM_TOKEN_PROD SENTRY_TOKEN: $SENTRY_TOKEN 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.sprinthub.ru" RABBIT_HOST: "rabbitmq.sprinthub.ru" REDIS_HOST: "redis.sprinthub.ru" MINIO_HOST: "minio.sprinthub.ru" MINIO_SECRET_KEY: $MINIO_SECRET_KEY_PROD RABBIT_PASSWORD: $RABBITMQ_PASSWORD_PROD REDIS_PASSWORD: $REDIS_PASSWORD_PROD DB_PASSWORD: $DB_PASSWORD_PROD DEBUG: "false" TELEGRAM_TOKEN: $TELEGRAM_TOKEN_PROD SENTRY_TOKEN: $SENTRY_TOKEN volumes: - /tmp:/tmp - /var/run/docker.sock:/var/run/docker.sock deploy: mode: replicated replicas: 4 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.sprinthub.ru" RABBIT_HOST: "rabbitmq.sprinthub.ru" REDIS_HOST: "redis.sprinthub.ru" MINIO_HOST: "minio.sprinthub.ru" MINIO_SECRET_KEY: $MINIO_SECRET_KEY_PROD RABBIT_PASSWORD: $RABBITMQ_PASSWORD_PROD REDIS_PASSWORD: $REDIS_PASSWORD_PROD DB_PASSWORD: $DB_PASSWORD_PROD DEBUG: "false" TELEGRAM_TOKEN: $TELEGRAM_TOKEN_PROD SENTRY_TOKEN: $SENTRY_TOKEN 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.sprinthub.ru" RABBIT_HOST: "rabbitmq.sprinthub.ru" REDIS_HOST: "redis.sprinthub.ru" MINIO_HOST: "minio.sprinthub.ru" MINIO_SECRET_KEY: $MINIO_SECRET_KEY_PROD RABBIT_PASSWORD: $RABBITMQ_PASSWORD_PROD REDIS_PASSWORD: $REDIS_PASSWORD_PROD DB_PASSWORD: $DB_PASSWORD_PROD DEBUG: "false" TELEGRAM_TOKEN: $TELEGRAM_TOKEN_PROD SENTRY_TOKEN: $SENTRY_TOKEN 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