version: "3.4" services: platform-nginx: image: mathwave/sprint-repo:platform networks: - common-infra-nginx-development - configurator-development - postgres-development - minio-development environment: DB_HOST: "postgres" DB_PASSWORD: $DB_PASSWORD_DEV MINIO_HOST: "minio" MINIO_SECRET_KEY: $MINIO_SECRET_KEY_DEV REDIS_HOST: "redis.dev.chocomarsh.com" REDIS_PASSWORD: $REDIS_PASSWORD_DEV 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 networks: - postgres-development - minio-development environment: DB_HOST: "postgres" DB_PASSWORD: $DB_PASSWORD_DEV MINIO_HOST: "minio" MINIO_SECRET_KEY: $MINIO_SECRET_KEY_DEV REDIS_HOST: "redis.dev.chocomarsh.com" REDIS_PASSWORD: $REDIS_PASSWORD_DEV 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 networks: - postgres-development - minio-development environment: DB_HOST: "postgres" DB_PASSWORD: $DB_PASSWORD_DEV MINIO_HOST: "minio" MINIO_SECRET_KEY: $MINIO_SECRET_KEY_DEV REDIS_HOST: "redis.dev.chocomarsh.com" REDIS_PASSWORD: $REDIS_PASSWORD_DEV VK_SERVICE_TOKEN: $VK_SERVICE_TOKEN YANDEX_SERVICE_TOKEN: $YANDEX_SERVICE_TOKEN PLATFORM_SECURITY_TOKEN: $PLATFORM_SECURITY_TOKEN command: migrate deploy: mode: replicated restart_policy: condition: on-failure update_config: parallelism: 1 order: start-first networks: common-infra-nginx-development: external: true configurator-development: external: true postgres-development: external: true minio-development: external: true