test ract

This commit is contained in:
jze9
2026-05-14 16:47:58 +05:00
parent 0ac1c8a862
commit de78624495
36 changed files with 5877 additions and 254 deletions

View File

@@ -1,6 +1,8 @@
version: "3.9"
services:
# ── FastAPI backend ────────────────────────────────────────────────────────
api:
build:
context: ./api
@@ -22,9 +24,16 @@ services:
depends_on:
minio:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:8000/health | grep ok || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 15s
networks:
- news_net
# ── Flet SPA + React editor (multi-stage build) ────────────────────────────
web:
build:
context: ./web
@@ -35,10 +44,18 @@ services:
environment:
API_URL: http://api:8000
depends_on:
- api
api:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:8080/ > /dev/null 2>&1 || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
networks:
- news_net
# ── MinIO object storage ───────────────────────────────────────────────────
minio:
image: minio/minio:latest
restart: unless-stopped