new web ract

This commit is contained in:
jze9
2026-05-15 03:31:28 +05:00
parent de78624495
commit 2335497226
58 changed files with 7397 additions and 406 deletions

View File

@@ -1,5 +1,3 @@
version: "3.9"
services:
# ── FastAPI backend ────────────────────────────────────────────────────────
@@ -21,11 +19,18 @@ services:
DOCS_PASSWORD: ${DOCS_PASSWORD:-admin}
ADMIN_USERNAME: ${ADMIN_USERNAME:-admin}
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-changeme}
VK_ACCESS_TOKEN: ${VK_ACCESS_TOKEN:-}
VK_IMPORT_STATUS: ${VK_IMPORT_STATUS:-published}
VK_POSTS_PER_RUN: ${VK_POSTS_PER_RUN:-100}
VK_IMPORT_HOUR: ${VK_IMPORT_HOUR:-6}
VK_IMPORT_MINUTE: ${VK_IMPORT_MINUTE:-0}
ports:
- "8000:8000"
depends_on:
minio:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:8000/health | grep ok || exit 1"]
test: ["CMD-SHELL", "python3 -c \"import urllib.request; urllib.request.urlopen('http://localhost:8000/health')\" || exit 1"]
interval: 10s
timeout: 5s
retries: 5
@@ -33,25 +38,23 @@ services:
networks:
- news_net
# ── Flet SPA + React editor (multi-stage build) ────────────────────────────
# ── React SPA + TipTap editor + nginx ─────────────────────────────────────
web:
build:
context: ./web
dockerfile: Dockerfile
context: .
dockerfile: web-react/Dockerfile
restart: unless-stopped
ports:
- "80:8080"
environment:
API_URL: http://api:8000
- "80:80"
depends_on:
api:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:8080/ > /dev/null 2>&1 || exit 1"]
test: ["CMD-SHELL", "wget -qO- http://localhost/ || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
start_period: 20s
networks:
- news_net