Elffuss BraidHub

kikocis/osiris public

master · 6.9 KiBSourceRawPermalink

Self-Hosting OSIRIS with Docker

OSIRIS ships as a self-contained Next.js standalone build. This guide covers running it with Docker / Docker Compose, deploying it as a CasaOS app, and configuring the optional API keys.

TL;DR: OSIRIS runs fully without any API keys. All core feeds (aviation, satellites, fires, earthquakes, weather, news, CVEs) use public keyless sources. Keys only matter for the optional RECON scanner backend and for raising rate limits on a few feeds.


git clone https://github.com/simplifaisoul/osiris.git
cd osiris

# optional: configure keys / scanner backend
cp .env.template .env        # then edit .env

docker compose up -d

Open http://localhost:3000.

What the compose file does:

Common commands:

docker compose pull             # fetch latest published image
docker compose logs -f          # follow logs
docker compose up -d --build    # rebuild locally after pulling new code
docker compose down             # stop & remove

Pull the prebuilt image from GHCR

A prebuilt multi-arch-friendly image is published to the GitHub Container Registry, so you can run OSIRIS without building anything:

docker pull ghcr.io/aiacos/osiris:latest      # or a pinned tag, e.g. :0.1.0
docker run -d --name osiris \
  -p 3005:3000 --env-file .env --restart unless-stopped \
  ghcr.io/aiacos/osiris:latest

If the package is private, authenticate first with a GitHub token that has read:packages: echo $TOKEN | docker login ghcr.io -u <github-user> --password-stdin. Make it public from the package's Settings → Danger Zone → Change visibility to allow anonymous pulls.

Plain docker run

docker build -t osiris:latest .
docker run -d --name osiris -p 3000:3000 --env-file .env --restart unless-stopped osiris:latest

Image details

Multi-stage build on node:22-alpine, runs as a non-root user (nextjs, uid 1001), serves Next.js standalone via node server.js on port 3000. Final image is ~220 MB. Build excludes node_modules, .next, .git and the repo's large *.diff artifacts via .dockerignore.


2. CasaOS

The compose file includes an x-casaos: metadata block (title, description, icon, port map, env descriptions) that plain Docker Compose ignores but CasaOS reads.

Install:

  1. On the CasaOS host, clone the repo somewhere persistent (e.g. /DATA/AppData/osiris).
  2. CasaOS dashboard → + → Install a customized app → paste the contents of docker-compose.yml. (or simply run docker compose up -d from the cloned directory).
  3. OSIRIS appears on the dashboard with its icon, reachable on host port 3000 (or whatever OSIRIS_PORT you set in .env).

The app icon is the gold Eye-of-Horus mark in public/casaos-icon.png (512×512 PNG), referenced by the icon: URL in the metadata.

CasaOS stores imported compose files under /var/lib/casaos/apps/, so a relative build: context may not resolve there. If importing the YAML directly, either build/tag osiris:latest first (docker build -t osiris:latest /path/to/osiris) or set image: to a prebuilt registry image.


3. API keys & data sources

Copy .env.template to .env and fill in only what you need.

What the code actually reads today

VariablePurposeRequired for
SCANNER_URLRECON scanner backend base URL (e.g. http://scanner:7700)RECON toolkit (quick/ssl/headers/rdns/subdomains/tech/whois/geoloc/vuln)
SCANNER_KEYShared secret; must equal the backend's OSIRIS_KEYRECON toolkit

Without SCANNER_URL/SCANNER_KEY the RECON endpoints return 503 and the rest of OSIRIS works normally. Generate a key with openssl rand -hex 32.

Optional keys (reserved / for higher rate limits)

These are documented for completeness and forward-compatibility. The current data routes use keyless public feeds, so these are not consumed yet — set them only if you extend the relevant route or hit rate limits.

VariableServiceHow to get it (all free)
FIRMS_API_KEYNASA FIRMS active firesEnter an email at https://firms.modaps.eosdis.nasa.gov/api/map_key/ — the MAP_KEY is emailed instantly. Limit 5000 req / 10 min.
OPENSKY_CLIENT_ID / OPENSKY_CLIENT_SECRETOpenSky aviationCreate an account at https://opensky-network.org/, open Account → API client, create a client and copy id/secret. OAuth2 only since March 2025 (username/password auth removed).
N2YO_API_KEYN2YO satellitesRegister at https://www.n2yo.com/login/register/, then Profile → generate API key. Limit 1000 req / hour; key can't be regenerated.
AIS_API_KEYaisstream.io maritimeSign up at https://aisstream.io/, create a key on the API Keys page. Used over wss://stream.aisstream.io/v0/stream.

Keep .env out of version control — it is already in .gitignore. Only .env.template (no secrets) is committed.

Optional runtime overrides

VariablePurposeDefault
OSIRIS_TELEGRAM_CHANNELSComma-separated list of public Telegram channel usernames (no @) to scrape for the Telegram OSINT map layer. Overrides the curated default set.osintdefender,insiderpaper,aljazeeraenglish,nexta_live,war_monitor
OSIRIS_PORTHost port the compose file publishes (container itself always listens on 3000).3000

Keyless sources (no configuration needed)

Aviation → adsb.lol · Satellites → celestrak.org (TLE) · Fires → NASA FIRMS open-data CSV · Earthquakes → USGS · Weather → NASA EONET · Space weather → NOAA SWPC · CVEs → NVD · News → public RSS / HLS streams · CCTV → public traffic-authority feeds · Crypto (BTC) → blockstream.info · Crypto (ETH) → eth.blockscout.com (Blockscout open-source explorer) · OFAC SDN sanctions → OpenSanctions mirror (CC-BY 4.0) · Telegram OSINT → public t.me/s/<channel> web preview.