Revert "chore(infra): healthcheck frontend + tighten depends_on; pin rosreestr2coord>=5 (#117)" (#119)

This reverts commit bade2f7772.

Co-authored-by: lekss361 <claudestars@proton.me>
This commit is contained in:
lekss361 2026-05-14 23:02:58 +03:00 committed by GitHub
parent d4cb56d093
commit 6ea2dcd46c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 15 deletions

View file

@ -28,7 +28,7 @@ dependencies = [
"numpy>=2.0.0", "numpy>=2.0.0",
"scikit-learn>=1.5.0", "scikit-learn>=1.5.0",
"sentry-sdk[fastapi]>=2.10.0", "sentry-sdk[fastapi]>=2.10.0",
"rosreestr2coord>=5.0.0", "rosreestr2coord>=4.0.0",
] ]
[dependency-groups] [dependency-groups]

2
backend/uv.lock generated
View file

@ -616,7 +616,7 @@ requires-dist = [
{ name = "pydantic-settings", specifier = ">=2.3.0" }, { name = "pydantic-settings", specifier = ">=2.3.0" },
{ name = "pyproj", specifier = ">=3.6.0" }, { name = "pyproj", specifier = ">=3.6.0" },
{ name = "redis", specifier = ">=5.0.0" }, { name = "redis", specifier = ">=5.0.0" },
{ name = "rosreestr2coord", specifier = ">=5.0.0" }, { name = "rosreestr2coord", specifier = ">=4.0.0" },
{ name = "scikit-learn", specifier = ">=1.5.0" }, { name = "scikit-learn", specifier = ">=1.5.0" },
{ name = "sentry-sdk", extras = ["fastapi"], specifier = ">=2.10.0" }, { name = "sentry-sdk", extras = ["fastapi"], specifier = ">=2.10.0" },
{ name = "shapely", specifier = ">=2.0.0" }, { name = "shapely", specifier = ">=2.0.0" },

View file

@ -58,7 +58,7 @@ services:
postgres: postgres:
condition: service_healthy condition: service_healthy
redis: redis:
condition: service_healthy condition: service_started
ports: ports:
- "127.0.0.1:8000:8000" - "127.0.0.1:8000:8000"
healthcheck: healthcheck:
@ -75,12 +75,6 @@ services:
- "127.0.0.1:3000:3000" - "127.0.0.1:3000:3000"
depends_on: depends_on:
- backend - backend
healthcheck:
test: ["CMD-SHELL", "wget --quiet --tries=1 --spider http://localhost:3000/ || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
worker: worker:
# Отдельный chromium-образ (+200 МБ Playwright). См. backend/Dockerfile target=runner-with-chromium. # Отдельный chromium-образ (+200 МБ Playwright). См. backend/Dockerfile target=runner-with-chromium.
@ -94,7 +88,7 @@ services:
postgres: postgres:
condition: service_healthy condition: service_healthy
redis: redis:
condition: service_healthy condition: service_started
volumes: volumes:
- ./data:/app/data # playwright_state.json + photo binaries - ./data:/app/data # playwright_state.json + photo binaries
# Read-only bind-mount Антоновского /sf/ SQLite — для objective_etl task. # Read-only bind-mount Антоновского /sf/ SQLite — для objective_etl task.
@ -114,7 +108,7 @@ services:
required: false required: false
depends_on: depends_on:
redis: redis:
condition: service_healthy condition: service_started
command: ["celery", "-A", "app.workers.celery_app", "beat", "--loglevel=info"] command: ["celery", "-A", "app.workers.celery_app", "beat", "--loglevel=info"]
caddy: caddy:
@ -128,10 +122,8 @@ services:
- caddy_data:/data - caddy_data:/data
- caddy_config:/config - caddy_config:/config
depends_on: depends_on:
backend: - backend
condition: service_healthy - frontend
frontend:
condition: service_healthy
networks: networks:
- default - default
# shared — для маршрута obsidian.gendsgn.ru → couchdb (отдельный stack). # shared — для маршрута obsidian.gendsgn.ru → couchdb (отдельный stack).