Docker Installation
Deploy Bunko with Docker Compose, either standalone next to your existing media servers or with the bundled Suwayomi and FlareSolverr stack.
Bunko runs as a single hardened container published for amd64 and arm64 at ghcr.io/lucas-lepajollec/bunko:latest. It exposes its web interface on port 2512 and stores persistent state in two mounts: /data and /library.
Standalone deployment
Use docker-compose.yml when you already run Suwayomi, Kavita, Jellyfin, Emby, or other media services on your host or LAN:
services:
bunko:
image: ghcr.io/lucas-lepajollec/bunko:latest
container_name: bunko
restart: unless-stopped
ports:
- '${BUNKO_PORT:-2512}:2512'
volumes:
- bunko-data:/data
- ${KAVITA_LIBRARIES:-./library}:/library
read_only: true
tmpfs:
- /tmp
security_opt:
- no-new-privileges:true
cap_drop: [ALL]
volumes:
bunko-data:Start the container:
docker compose up -dThen inspect the startup logs to retrieve your one-time first-start setup code:
docker compose logs bunkoOpen http://<your-host>:2512 in your browser and follow First Start and Permissions.
Full stack with Suwayomi and FlareSolverr
If you are starting from scratch and do not already run Suwayomi, use docker-compose.full.yml. It deploys Bunko alongside a headless Suwayomi server (v2.4.2366) and FlareSolverr (v3.5.2) on an internal Docker network with no extra published ports:
services:
bunko:
image: ghcr.io/lucas-lepajollec/bunko:latest
ports:
- '2512:2512'
environment:
SUWAYOMI_URL: http://suwayomi:4567
volumes:
- app-data:/data
- library:/library
depends_on:
suwayomi:
condition: service_started
restart: unless-stopped
read_only: true
tmpfs:
- /tmp
security_opt:
- no-new-privileges:true
cap_drop: [ALL]
suwayomi:
image: ghcr.io/suwayomi/suwayomi-server:v2.4.2366
environment:
BIND_IP: 0.0.0.0
BIND_PORT: '4567'
WEB_UI_ENABLED: 'false'
AUTO_DOWNLOAD_CHAPTERS: 'false'
DOWNLOAD_AS_CBZ: 'true'
FLARESOLVERR_ENABLED: 'true'
FLARESOLVERR_URL: http://flaresolverr:8191
volumes:
- suwayomi-data:/home/suwayomi/.local/share/Tachidesk
depends_on:
flaresolverr:
condition: service_started
restart: unless-stopped
security_opt:
- no-new-privileges:true
flaresolverr:
image: ghcr.io/flaresolverr/flaresolverr:v3.5.2
environment:
LOG_LEVEL: warn
TZ: Europe/Paris
restart: unless-stopped
security_opt:
- no-new-privileges:true
volumes:
app-data:
suwayomi-data:
library:Launch the complete stack with:
docker compose -f docker-compose.full.yml up -dVolumes and UID 1000 permissions
Bunko runs inside the container as a non-root user with UID 1000 and a read-only root filesystem (read_only: true, cap_drop: [ALL]).
/data(BUNKO_DATA_DIR) storesaccounts.db, per-user SQLite databases underusers/<id>/,settings.key,session.key,access.token,setup.code, and caches. Always persist this directory on a Docker volume or local disk; never run multiple Bunko replicas against the same/datavolume./library(BUNKO_LIBRARY_DIR) mounts the parent directory that contains your Kavita library folders (for examplemanga/andwebtoons/). Bunko writes imported CBZ files, cover images, and translated books here.
Because the container runs as UID 1000, the host folder mounted at /library must be writable by UID 1000:
sudo chown -R 1000:1000 /path/to/your/kavita/librariesIf another service (such as Kavita) shares the same host directory, grant group write access or matching POSIX ACLs so both UID 1000 and your media server can read and write cleanly.
Environment variables
Most connections and preferences are configured in the web interface under Settings. Environment variables are optional and useful for Docker automation, reverse proxies, or seeding the first account once:
| Variable | Default | Purpose |
|---|---|---|
BUNKO_PORT | 2512 | Host port published by docker-compose.yml. |
KAVITA_LIBRARIES | ./library | Host directory mounted at /library. |
BUNKO_DATA_DIR | /data | Path inside the container for SQLite databases and keys. |
BUNKO_LIBRARY_DIR | /library | Common media root mount inside the container. |
SUWAYOMI_URL | http://suwayomi:4567 | Initial Suwayomi URL seeded once for account 1; saved Settings take precedence. |
TMDB_API_KEY | (unset) | Optional TMDB key seeded into shared catalog settings for series and movies. |
BUNKO_SETUP_CODE | (generated) | Deterministic first-start setup code instead of generating /data/setup.code. |
BUNKO_TRUST_PROXY | false | Trust X-Forwarded-Proto and X-Forwarded-For behind a reverse proxy. |
BUNKO_SECURE_COOKIES | false | Unconditionally set the Secure flag on session cookies. |
BUNKO_VIDEO_ALLOWED_HOSTS | (unset) | Comma-separated LAN/Docker host, host:port, or CIDR entries allowed for video extensions. |
BUNKO_RESET_ACCOUNT | false | One-time recovery trigger that resets account 1's password and writes /data/recovery.code. |
Reaching services on the Docker host
Inside a container, localhost refers to the Bunko container itself. To reach services running on the Docker host, attach Bunko to a shared Docker network and use service names, or add extra_hosts: ["host.docker.internal:host-gateway"] in your Compose file.