feat: add durable asset synchronization worker
This commit is contained in:
@@ -54,6 +54,25 @@ services:
|
||||
volumes: ["reference-data:/app/data/reference:ro"]
|
||||
depends_on:
|
||||
backend: { condition: service_healthy }
|
||||
sync-worker:
|
||||
profiles: ["worker"]
|
||||
restart: unless-stopped
|
||||
build: .
|
||||
command: ["bun", "scripts/run-sync-worker.ts"]
|
||||
environment:
|
||||
CONVEX_URL: http://backend:3210
|
||||
CONVEX_SYNC_WORKER_SECRET: ${CONVEX_SYNC_WORKER_SECRET:-}
|
||||
TOKEN_ENCRYPTION_KEY: ${TOKEN_ENCRYPTION_KEY:-}
|
||||
EVE_CLIENT_ID: ${EVE_CLIENT_ID:-}
|
||||
EVE_CLIENT_SECRET: ${EVE_CLIENT_SECRET:-}
|
||||
EVE_CALLBACK_URL: ${EVE_CALLBACK_URL:-http://localhost/unused-worker-callback}
|
||||
ESI_USER_AGENT: ${ESI_USER_AGENT:-EVE-Intelligence/0.1 (configure operator contact)}
|
||||
SYNC_WORKER_ID: ${SYNC_WORKER_ID:-local-sync-worker}
|
||||
SYNC_WORKER_LEASE_MS: ${SYNC_WORKER_LEASE_MS:-600000}
|
||||
SYNC_WORKER_HEARTBEAT_MS: ${SYNC_WORKER_HEARTBEAT_MS:-60000}
|
||||
SYNC_WORKER_POLL_MS: ${SYNC_WORKER_POLL_MS:-1000}
|
||||
depends_on:
|
||||
backend: { condition: service_healthy }
|
||||
reference-worker:
|
||||
profiles: ["tools"]
|
||||
build: .
|
||||
|
||||
Reference in New Issue
Block a user