Installation
Docker Compose (recommended)
git clone https://github.com/Karnak19/fouine.git
cd fouine
cp .env.example .env
# edit .env with your GitHub App credentials and OpenCode key
docker compose up -dfouine runs on http://localhost:3000. Data (SQLite DB, bare repos, worktrees) is stored in the ./data volume.
The bundled docker-compose.yml also starts an OpenCode sidecar (opencode) — see below. Set OPENCODE_SERVER_PASSWORD (any strong random string) in .env so fouine and the sidecar share one Basic-auth password; it is the only value that must match between them.
OpenCode: child mode vs sidecar mode
Reviews run against one long-lived OpenCode server (one session per review). fouine supports two ways to provide it:
- Child mode (default). fouine spawns its own
opencode serveinside its container. The rootDockerfileinstalls the CLI, so nothing extra is needed. This is what runs whenOPENCODE_BASE_URLis unset — dev,docker run, andcompose.coolify.yml. - Sidecar mode. When
OPENCODE_BASE_URLis set, fouine spawns nothing and talks to that server instead.docker-compose.ymluses this: it buildsDockerfile.opencode(the officialghcr.io/anomalyco/opencodeimage plusgit, which the official image lacks) and passesOPENCODE_BASE_URL=http://opencode:4096to fouine.
To switch: set/unset OPENCODE_BASE_URL (and keep OPENCODE_SERVER_PASSWORD identical on both sides in sidecar mode). Remove the opencode service and the OPENCODE_BASE_URL line to go back to child mode in Compose.
Sidecar volume path must match
Both containers mount the same volume at the same absolute path (./data:/data). A review's worktree is created under /data/worktrees/…, and that absolute path is handed to the sidecar as the session directory — if the two containers disagree on the path, every review fails. The sidecar also needs git for exactly this reason.
Only fouine publishes a host port; the sidecar is reachable on the Compose network only.
Coolify
Use the Coolify-specific compose file:
docker compose -f compose.coolify.yml up -dThis uses a named Docker volume (fouine-data) instead of a bind mount, and sets XDG_DATA_HOME so OpenCode sessions survive redeploys.
Configure environment variables in the Coolify UI instead of .env.
Manual (development)
Requires Bun installed.
git clone https://github.com/Karnak19/fouine.git
cd fouine
bun install
# also install the OpenCode CLI
curl -fsSL https://opencode.ai/install | bash
# configure
cp .env.example .env
# edit .env
# run
bun run devWARNING
The OpenCode CLI must be available in PATH for reviews to work. The Docker image handles this automatically.
Environment variables
See the Configuration page for the full reference.
Health check
curl http://localhost:3000/healthReturns 200 OK when the server is running.
