test ract
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user