Skip to content

Install with Docker Compose

The stack lives in deploy/docker-compose.yml and has five services:

ServiceRoleExposed
nginxSingle entry point: / frontend, /api/v1 backend, /mcpYes (HTTP_PORT, default 80)
frontendReact 19 SSR process (includes /admin)No, compose network only
backendGo / Iris APINo; metrics on 9091 are internal too
postgresPrimary database (PostgreSQL 16)No
natsJetStream: KV and event busNo

A nats-exporter service converts NATS metrics to Prometheus format; it is also internal.

  • Docker Engine 24+ with Compose v2 (docker compose version works)
  • Network access to postgres:16-alpine, nats:2.10-alpine, and nginx:alpine
  • Port 80 free, or a different HTTP_PORT
终端窗口
git clone https://github.com/NoelOrin/FeedChamber.git
cd FeedChamber
ADMIN_PASSWORD='choose-a-strong-one' HTTP_PORT=8080 \
docker compose -f deploy/docker-compose.yml up -d --build

Slow dependency downloads can be routed through mirrors:

终端窗口
GOPROXY=https://goproxy.cn,direct \
NPM_REGISTRY=https://registry.npmmirror.com \
docker compose -f deploy/docker-compose.yml build
VariableDefaultNotes
HTTP_PORT80Host port nginx binds
ADMIN_PASSWORDemptySeeded admin password; empty means random and logged
POSTGRES_USER / POSTGRES_PASSWORD / POSTGRES_DBfeedchamberMust match DB_DSN
SITE_URLemptyPublic origin for sitemap / canonical / OG (the site_url setting wins)
MASTER_COOKIE_SECUREtrueSession cookie Secure flag; set false only for plain-HTTP debugging
LOG_LEVEL / LOG_FORMAT / LOG_OUTPUTinfo / json / stderrBackend logging
TZ (postgres)Asia/ShanghaiKeep aligned with DB_DSN’s TimeZone
终端窗口
docker compose -f deploy/docker-compose.yml ps
# five services running; postgres, nats, backend, frontend also healthy
curl -s http://localhost:8080/api/v1/health
# {"code":0,"msg":"success","data":{...}}
curl -sI http://localhost:8080/ | head -1
# HTTP/1.1 200 OK

Read the generated admin password:

终端窗口
docker compose -f deploy/docker-compose.yml logs backend | grep -i admin
VolumeContentsBackup
feedchamber_pgPostgreSQL data directorypg_dump or a volume snapshot
feedchamber_natsJetStream (KV plus event queues)Rebuildable; losing it drops session caches and rate-limit windows
feedchamber_uploadsLocal uploadsFile sync or object storage

Deleting the volumes deletes the site:

终端窗口
# Destructive: removes containers and data
docker compose -f deploy/docker-compose.yml down -v
终端窗口
git pull
docker compose -f deploy/docker-compose.yml up -d --build

The backend runs AutoMigrate on boot, which adds new columns and tables. Destructive changes are covered in Upgrades and migrations. Back up first:

终端窗口
docker compose -f deploy/docker-compose.yml exec postgres \
pg_dump -U feedchamber feedchamber > backup-$(date +%F).sql
SymptomCauseFix
port is already allocatedPort 80 takenRe-run with HTTP_PORT=8080
Backend restart loopPostgres or NATS not healthyWait 30s; then check logs backend
Logged out immediatelyPlain HTTP with MASTER_COOKIE_SECURE=trueUse false locally; keep TLS in production
Images 404Upload volume missing or wipedCheck feedchamber_uploads; avoid down -v
/mcp returns 404mcp_enabled is offEnable it in the admin settings

More in Troubleshooting.