feat: watcher akislarini ve wscraper servis entegrasyonunu ekle

This commit is contained in:
2026-03-12 22:30:43 +03:00
parent 6507d13325
commit baad2b3e96
34 changed files with 2663 additions and 11 deletions

View File

@@ -1,10 +1,14 @@
version: "3.9"
services:
server:
build:
context: .
dockerfile: apps/server/Dockerfile
working_dir: /app
extra_hosts:
- "host.docker.internal:host-gateway"
dns:
- 8.8.8.8
- 1.1.1.1
command: sh -c "pnpm install || true && pnpm -C /app/apps/server dev"
ports:
- "${SERVER_PORT:-3001}:${SERVER_PORT:-3001}"
@@ -30,11 +34,21 @@ services:
- ENFORCE_INTERVAL_MS=${ENFORCE_INTERVAL_MS}
- DEFAULT_DELAY_MS=${DEFAULT_DELAY_MS}
- MAX_LOOP_LIMIT=${MAX_LOOP_LIMIT}
- WATCHER_SECRET_KEY=${WATCHER_SECRET_KEY}
- WATCHER_ENABLED=${WATCHER_ENABLED}
- WATCHER_TICK_MS=${WATCHER_TICK_MS}
- WATCHER_TIMEOUT_MS=${WATCHER_TIMEOUT_MS}
- WATCHER_RUNTIME_DIR=${WATCHER_RUNTIME_DIR}
- WSCRAPER_SERVICE_BASE_URL=${WSCRAPER_SERVICE_BASE_URL:-http://host.docker.internal:8787}
- WSCRAPER_SERVICE_TOKEN=${WSCRAPER_SERVICE_TOKEN:-}
web:
build:
context: .
dockerfile: apps/web/Dockerfile
working_dir: /app
dns:
- 8.8.8.8
- 1.1.1.1
command: sh -c "pnpm install || true && pnpm -C /app/apps/web dev"
ports:
- "${WEB_PORT:-5173}:${WEB_PORT:-5173}"
@@ -46,4 +60,4 @@ services:
- VITE_API_BASE=http://${APP_HOST:-localhost}:${SERVER_PORT:-3001}
- WEB_PORT=${WEB_PORT}
- WEB_ORIGIN=http://${APP_HOST:-localhost}:${WEB_PORT:-5173}
- WEB_ALLOWED_HOSTS=${WEB_ALLOWED_HOSTS}
- WEB_ALLOWED_HOSTS=${WEB_ALLOWED_HOSTS:-localhost}