Add long-running ingester (sources->NATS->Postgres) as compose 'ingest' profile service
Some checks failed
build-and-deploy / build (push) Failing after 2m58s

This commit is contained in:
sirius0xdev 2026-07-07 19:18:37 -04:00
commit 5496023285
No known key found for this signature in database
2 changed files with 123 additions and 0 deletions

View file

@ -44,6 +44,33 @@ services:
- "127.0.0.1:8222:8222"
command: ["-js"]
ingester:
build:
context: .
dockerfile: Dockerfile
platforms: ["linux/arm64"]
image: localhost/osint-dashboard:latest
container_name: osint-ingester
restart: unless-stopped
profiles: ["ingest"]
depends_on:
nats:
condition: service_started
db:
condition: service_healthy
environment:
DB_USER: ${DB_USER:-osint}
DB_PASSWORD: ${DB_PASSWORD:-osint}
DB_HOST: db
DB_PORT: ${DB_PORT:-5432}
DB_NAME: ${DB_NAME:-osint_data}
NATS_URL: ${NATS_URL:-nats://nats:4222}
RSS_URL: ${RSS_URL:-}
GDELT_QUERY: ${GDELT_QUERY:-}
INGEST_INTERVAL: ${INGEST_INTERVAL:-300}
INGEST_EARTHQUAKES: ${INGEST_EARTHQUAKES:-1}
command: ["python", "app/run_ingester.py"]
app:
build:
context: .