Something went wrong. Try again.
A free, open-source, self-hosted place to write a novel.
Something went wrong. Try again.
Fablewright docker-compose.yml
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960# Fablewright for a single server.## docker compose up -d## Then open the address, and the first account you create claims the instance.# Everything the writer makes lives in the `fablewright-data` volume: one SQLite# file, the signing secret, and the uploads directory.## The tag is pinned to a version, not to `latest`, so a `docker compose pull`# never changes what runs without you saying so. To move to a new release, set# FABLEWRIGHT_TAG in `.env`, take a backup first, then pull and restart. See# docs/operations.md.## A rollback is a tag change and a database restore, in that order. Migrations# only move forward, so an older image refuses to start against a newer database.
services: fablewright: image: katsuricata/fablewright:${FABLEWRIGHT_TAG:-1.0.0} container_name: fablewright restart: unless-stopped ports: - '3000:3000' environment: # Leave ORIGIN empty to serve on whatever address the request arrives on. # Set it to the public URL when a proxy terminates TLS in front of this. ORIGIN: ${ORIGIN:-} # The one address this instance advertises. Passkeys bind to it, and a reset # link carries it. Set it only when ORIGIN stays empty because the instance # answers on several domains. Without either, reset links are not emailed. INSTANCE_ORIGIN: ${INSTANCE_ORIGIN:-} # 0 for a direct install, where a client could send its own forwarding # headers. Set 1 only when every request arrives through a proxy and port # 3000 is not directly reachable. TRUST_PROXY: ${TRUST_PROXY:-0} DATABASE_URL: file:/data/fablewright.db # Generated into the data volume on first start when this is empty, so a # fresh stack needs no secrets in the compose file. BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET:-} # Only read when TRUST_PROXY is 1. It says how many proxies appended to # X-Forwarded-For, so the address is taken from the right entry. XFF_DEPTH: '1' # Multipart imports need room above the 100 MiB file limit. BODY_SIZE_LIMIT: 101M volumes: - fablewright-data:/data healthcheck: test: - CMD - node - -e - "fetch('http://127.0.0.1:3000/api/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))" interval: 30s timeout: 5s retries: 3 start_period: 20s
volumes: fablewright-data: