Skip to the content
OwnWing

DocsRun it

Configuration

Every setting lives in .env in the repo’s folder. ./ownwing init writes it from .env.example (keeping its comments) and fills in your answers; edit it afterwards and run ./ownwing up to apply. Plain docker compose in the same folder reads the same .env, so it sees the same stack.

Secrets are never in .env: they are files in <OWNWING_DATA>/secrets/, made by init.

This page mirrors .env.example, variable for variable and in the same order. When you add, remove or change a variable there, change it here in the same commit.

“Managed” means ./ownwing keeps the value in step with the others on every run: don’t edit it by hand.

The install

Variable Default What it does
COMPOSE_PROJECT_NAME ownwing Docker Compose’s name for this install. Containers, networks and images are named after it, so several installs can live on one machine
COMPOSE_PROFILES core,photos,notes,calendar,contacts,mcp Which apps run: core (Caddy, OwnWing ID, Files), photos, notes, calendar (Calendar and Reminders), contacts, and mcp (the gateway coding agents connect to, MCP). init asks (--apps); extensions come with ./ownwing ext add
COMPOSE_FILE compose.yaml Managed. compose.yaml, plus compose.gpu.yaml, compose.proxy.yaml, compose.extensions.yaml and compose.override.yaml when they apply

Addresses

Variable Default What it does
OWNWING_DOMAIN ownwing.localhost Every app lives at <name>.<domain>. ownwing.localhost needs no DNS on the machine itself (browsers send *.localhost to 127.0.0.1); on a network or the internet, point *.<domain> at the server
OWNWING_HOST_ID empty (id.<domain>) A host of its own for OwnWing ID, for example an existing install keeping its names
OWNWING_HOST_PHOTOS empty (photos.<domain>) The same for Photos
OWNWING_HOST_FILES empty (files.<domain>) The same for Files
OWNWING_HOST_NOTES empty (notes.<domain>) The same for Notes
OWNWING_HOST_MCP empty (mcp.<domain>) The same for the MCP gateway coding agents connect to; their tokens are bound to this address (OwnWing ID registers it as the mcp application, with the client secret init makes in <data>/secrets/id/mcp_client_secret)
OWNWING_HOST_CALENDAR empty (calendar.<domain>) The same for Calendar
OWNWING_HOST_REMINDERS empty (reminders.<domain>) The same for Reminders (the same server as Calendar)
OWNWING_HOST_CONTACTS empty (contacts.<domain>) The same for Contacts
OWNWING_BIND 0.0.0.0 The address Caddy listens on. 127.0.0.1 keeps OwnWing to this machine
OWNWING_HTTP_PORT 80 Caddy’s HTTP port (it only redirects to HTTPS and answers Let’s Encrypt)
OWNWING_HTTPS_PORT 443 Caddy’s HTTPS port. Another port appears in every address
OWNWING_URL_PORT empty Managed. :<OWNWING_HTTPS_PORT> when that isn’t 443, else empty; every public address ends with it
OWNWING_ACME_EMAIL empty Empty: certificates from Caddy’s own CA (./ownwing ca shows how to trust it). An email: real certificates from Let’s Encrypt; the domain must be public and reach this machine on 80 and 443
OWNWING_PROXY_NETWORK empty Behind a reverse proxy you already run (Nginx Proxy Manager, Traefik…): its Docker network. Set, Caddy stays off and OwnWing ID and the apps join that network as id:3000, photos:8080, files:8080, mcp:8080 (compose.proxy.yaml; install)
OWNWING_PROXY_HOST empty That proxy’s container name (or address) on its network: an app or extension that believes X-Real-IP believes only this peer’s

Where things live

Variable Default What it does
OWNWING_DATA ./data The apps’ own state: databases, catalogues, thumbnails, certificates, secrets/. init writes an absolute path. Back it up with ./ownwing backup
OWNWING_USERS ./users People’s files: <users>/<username>/Photos, an extension’s own folder and the rest. Files shows each person their folder
OWNWING_USERS_LABEL empty (/users) How the apps name that folder to people
OWNWING_OWNER owner The owner’s OwnWing ID username: the account you create on the setup page. Their photo library is <users>/<owner>/Photos. init proposes your login name
OWNWING_UID 1000 The user every container runs as: the owner of OWNWING_USERS. init sets yours
OWNWING_GID 1000 Its group
OWNWING_TZ UTC The time zone every app keeps days and times in (an IANA name, e.g. Europe/Paris). init takes this machine’s
OWNWING_ID_DATA empty (<data>/id) OwnWing ID’s folder (people, passkeys, applications, the audit log), when it lives elsewhere
OWNWING_ID_SECRETS empty (<data>/secrets/id) OwnWing ID’s signing key and session secret. init never replaces one; a folder its container’s user owns is left alone
FILES_DATA empty (<data>/files) Files’ databases
PHOTOS_DATA empty (<data>/photos/data) Photos’ catalogues, thumbnails and sessions
NOTES_DATA empty (<data>/notes) Notes’ databases (one per person) and their attachments
CALENDAR_DATA empty (<data>/calendar) Calendar and Reminders’ index and sessions (the calendars themselves are .ics files in <users>/<username>/Calendar/)
CONTACTS_DATA empty (<data>/contacts) Contacts’ index and sessions (the address books themselves are .vcf files in <users>/<username>/Contacts/)

OwnWing ID

Variable Default What it does
OWNWING_ID_PUBLIC_KEY empty Its public key, which every app checks sign-ins with. init derives it from the signing key in <data>/secrets/id/signing_key; never edit it by hand
OWNWING_APPS photos,files,notes,calendar,reminders,contacts Managed. The apps OwnWing ID registers on its first start, from COMPOSE_PROFILES
OWNWING_PROTECTED_SITES empty Other sites behind OwnWing ID’s sign-in (Caddy’s ownwing_protect snippet): id=host[:Name], comma separated, e.g. status=status.example.com:Status page. Read on the first start; later, use OwnWing ID › Apps
OWNWING_ID_APP_ID empty The iPhone app’s App ID, <team id>.<bundle id> (e.g. ABCDE12345.app.ownwing): App Attest proves that a Face ID key was made by that app on a real iPhone
OWNWING_ID_APP_ATTEST empty (required with OWNWING_ID_APP_ID, else off) App Attest for the iPhone’s Face ID key: required (only App Store and TestFlight builds’ keys answer with Face ID; others confirm with the passcode), optional (checked when sent, Xcode’s development builds too), off (dev builds and the simulator, which can’t attest)

The OWNWING_ID_ prefix and the “OwnWing token” are OwnWing ID’s wire names, kept for compatibility.

Photos

Variable Default What it does
PHOTOS_ALLOW_NON_BTRFS empty 1 when the people’s folder isn’t on Btrfs (ext4, APFS…). Otherwise Photos refuses it, as a guard against a drive that failed to mount. init sets it when needed
PHOTOS_MODELS empty (<data>/photos/models) The models: search, faces, translation, places, the map (apps/photos/docs/operations.md § ML models). Without them Photos works, minus search, faces and maps
PHOTOS_APPDATA empty (<users>/.ownwing/photos) Trash and kept originals. Must be on the same filesystem as the photos
PHOTOS_LIBRARY_LABEL empty (the path inside) How Settings names the owner’s library
PHOTOS_WORKERS 6 How many jobs (thumbnails, scans) Photos runs at once
PHOTOS_MEMORY 6g Photos’ memory limit
PHOTOS_ML_MEMORY 10g The models’ memory limit
OWNWING_GPU 0 1: use an Intel GPU (/dev/dri) for video and the models (adds compose.gpu.yaml). init --gpu sets it
PHOTOS_RENDER_GID empty The host’s render group id (stat -c %g /dev/dri/renderD128). Required with OWNWING_GPU=1; init --gpu fills it in
PHOTOS_VIDEO_GID 44 The host’s video group id (getent group video)

Files

Variable Default What it does
FILES_TRASH_DAYS 30 Days before the trash empties itself
FILES_MEMORY 2g Files’ memory limit
FILES_LINK_NETWORKS empty (home and tailnet) Where Files’ links and file requests open: comma-separated CIDR blocks of client addresses (the address Caddy saw). Empty: loopback, the private ranges (10/8, 172.16/12, 192.168/16, fc00::/7, link-local) and the tailnet (100.64/10); none turns links off. Behind another proxy, every client looks like that proxy: list only what should open links
FILES_SNAPSHOTS_DIR empty (off) A folder on this machine holding read-only snapshots of OWNWING_USERS, one subfolder per snapshot, each laid out like the share (<snapshot>/<username>/…) and named with its date (daily-2026-12-01_0300, users-20261201). With it, a folder’s details list the earlier days it can go back to and bring one back; Files only reads it and never makes snapshots (your NAS or snapper / sanoid does: backup.md). Empty: the feature is off and the web and the phone show nothing

Notes

Variable Default What it does
NOTES_TRASH_DAYS 30 Days before a note in the trash is deleted for good
NOTES_MEMORY 512m Notes’ memory limit

MCP gateway

Variable Default What it does
OWNWING_MCP_MAX_TEXT_KB 256 Kilobytes of text one result may carry; the rest is cut, with a note, and the agent asks for a smaller range
OWNWING_MCP_MAX_UPLOAD_MB 25 Megabytes in one call’s arguments (an upload sent as text or base64)
OWNWING_MCP_RATE_PER_MINUTE 120 Calls per minute and agent (0: no limit)
OWNWING_MCP_TIMEOUT_SECONDS 60 Seconds before a call to an app gives up with a timeout error

Calendar and Reminders

Variable Default What it does
CALENDAR_SUBSCRIPTION_MINUTES 60 Minutes between two fetches of a subscribed calendar (an .ics address); at least 5
CALENDAR_MEMORY 512m Calendar and Reminders’ memory limit

Contacts

Variable Default What it does
CONTACTS_MEMORY 256m Contacts’ memory limit

Extensions

Variable Default What it does
OWNWING_APP_FOLDERS empty Managed. Each added extension’s folder in every person’s home (manifest storage.perPerson): <id>=<Folder>[:ro], comma separated. Files keeps those names for their app and shows a :ro one (storage.managed) read-only

./ownwing ext add includes each extension’s compose.yaml (through compose.extensions.yaml). Their settings go at the end of .env, as their README and manifest say (for example Links’ LINKS_PUBLIC_URL). A host of its own for an extension: OWNWING_HOST_<ID>=… (its id in capitals, - as _).

Your own changes

compose.override.yaml (git-ignored) is added to the stack when it exists: the place for extra mounts, another network or anything else .env doesn’t cover. Extra Caddy sites go in <data>/caddy/sites/*.caddy; the top of the Caddyfile shows how to put one behind OwnWing ID.

Edit this page on GitHub