platform/.deploy/deploy-prod.yaml
emmatveev ed33722449
All checks were successful
Deploy Prod / Build (pull_request) Successful in 5s
Deploy Prod / Push (pull_request) Successful in 9s
Deploy Prod / Deploy prod (pull_request) Successful in 12s
fix
2024-11-27 02:26:44 +03:00

82 lines
2.2 KiB
YAML

version: "3.4"
services:
platform-nginx:
image: mathwave/sprint-repo:platform
networks:
- common-infra-nginx
- configurator
environment:
DB_HOST: "pg.sprinthub.ru"
DB_PASSWORD: $DB_PASSWORD_PROD
MINIO_HOST: "minio.sprinthub.ru"
MINIO_SECRET_KEY: $MINIO_SECRET_KEY_PROD
REDIS_HOST: "redis.sprinthub.ru"
REDIS_PASSWORD: $REDIS_PASSWORD_PROD
RABBITMQ_HOST: "rabbitmq.sprinthub.ru"
RABBITMQ_PASSWORD: $RABBITMQ_PASSWORD_PROD
VK_SERVICE_TOKEN: $VK_SERVICE_TOKEN
YANDEX_SERVICE_TOKEN: $YANDEX_SERVICE_TOKEN
PLATFORM_SECURITY_TOKEN: $PLATFORM_SECURITY_TOKEN
command: runserver 0.0.0.0:1238
healthcheck:
test: curl --fail http://0.0.0.0:1238/ping || exit 1
interval: 60s
retries: 5
start_period: 10s
timeout: 10s
deploy:
mode: replicated
restart_policy:
condition: any
update_config:
parallelism: 1
order: start-first
fetch_stats:
image: mathwave/sprint-repo:platform
environment:
DB_HOST: "pg.sprinthub.ru"
DB_PASSWORD: $DB_PASSWORD_PROD
MINIO_HOST: "minio.sprinthub.ru"
MINIO_SECRET_KEY: $MINIO_SECRET_KEY_PROD
REDIS_HOST: "redis.sprinthub.ru"
REDIS_PASSWORD: $REDIS_PASSWORD_PROD
RABBITMQ_HOST: "rabbitmq.sprinthub.ru"
RABBITMQ_PASSWORD: $RABBITMQ_PASSWORD_PROD
VK_SERVICE_TOKEN: $VK_SERVICE_TOKEN
YANDEX_SERVICE_TOKEN: $YANDEX_SERVICE_TOKEN
PLATFORM_SECURITY_TOKEN: $PLATFORM_SECURITY_TOKEN
command: fetch_stats
deploy:
mode: replicated
restart_policy:
condition: any
update_config:
parallelism: 1
order: start-first
migrate:
image: mathwave/sprint-repo:platform
environment:
DB_HOST: "pg.sprinthub.ru"
DB_PASSWORD: $DB_PASSWORD_PROD
MINIO_HOST: "minio.sprinthub.ru"
MINIO_SECRET_KEY: $MINIO _SECRET_KEY_PROD
command: migrate
deploy:
mode: replicated
restart_policy:
condition: on-failure
update_config:
parallelism: 1
order: start-first
networks:
common-infra-nginx:
external: true
configurator:
external: true