Michael Kinder b8a8fd4bff
Check recipes / Bump guard (push) Skipped
Check recipes / Bump guard (pull_request) Skipped
Check recipes / Version format (push) Successful in 9s
Check recipes / Parameters (push) Successful in 12s
Check recipes / Listing images (push) Successful in 9s
Check recipes / Docker Compose test (push) Successful in 7s
Check recipes / Cottage checks (push) Successful in 4m41s
Check recipes / Version format (pull_request) Successful in 9s
Check recipes / Parameters (pull_request) Successful in 11s
Check recipes / Listing images (pull_request) Successful in 9s
Check recipes / Docker Compose test (pull_request) Successful in 7s
Check recipes / Cottage checks (pull_request) Successful in 1m8s
CI: install PyYAML in the jobs that need it (the Gitea runner image lacks it)
2026-11-24 22:54:03 -05:00
2026-11-24 22:14:09 -05:00
2026-11-24 17:33:57 -05:00
2026-11-24 22:14:09 -05:00
2026-11-21 13:45:14 -05:00
2026-11-24 22:14:09 -05:00

Cottage catalog

The recipes behind every app on Cottage, managed hosting for open-source apps. A recipe is a Docker Compose file with a few Cottage settings, plus the listing people see when they choose an app.

Maintainers are welcome here: if you make one of these apps, you can check how we run it, suggest changes, or co-maintain its recipe. Cottage shares the revenue from each app with the people who make it; see the maintainer program on cottage.host.

apps/<slug>/
  template.yml   Docker Compose file, with Cottage's settings in the x-harbor block
  cottage.yml    listing: name, tagline, category, upstream, licence, image digests
  README.md      the app's "Getting set up" checklist in the dashboard
  icon.svg       64×64 icon, no scripts or event handlers
schema/cottage.schema.json
scripts/local-test.sh

Writing a recipe

template.yml is an ordinary Compose file. Its x-harbor block (Compose ignores x- keys) tells Cottage how to run it:

Key Meaning
slug, name, description slug matches the directory name and the upstream project, lowercase with hyphens
version <upstream version>-c<recipe revision>, e.g. 1.34.3-c1. The upstream part is numbers separated by dots, so automatic updates can compare versions: write a date release 2026-11-21 as 2026.11.21, and a hotfix letter as a fourth number (2026-07-14c → 2026.07.14.3).
primary the service and port that serve the app over HTTPS, e.g. { service: app, port: 8080 }
health_path a path that answers 200 once the app is ready
default_resources, min_resources cpu_millis, memory_mb, storage_mb
volumes named volumes to hand to a non-root user: data: { uid: 1000, gid: 1000, mode: "0750" }
parameters settings people can see or change; secrets are generated (generate: random32, random16, hex32, or password for apps whose passwords must mix cases, digits and a symbol)
tcp_ports at most two ports the app needs besides HTTPS, for protocols with their own authentication such as SSH: [{ name: ssh, service: app, port: 2222 }]

Each parameter has a key, label and type (string, int, bool or choice with choices), and may set default, secret, generate, editable (the owner can change it later), group (fields with the same group are shown together) and hint (one line of help shown with the field). schema/cottage.schema.json describes them under $defs/parameter. For a choice parameter, Cottage also sets <KEY>_IS_<CHOICE>=true for the selected value, so a recipe can turn one choice into the app's own words: ${SMTP_SECURITY_IS_TLS:+ssl}${SMTP_SECURITY_IS_STARTTLS:+tls}. For every empty parameter it sets <KEY>_IS_EMPTY=true, so ${SMTP_HOST_IS_EMPTY:+log}${SMTP_HOST:+smtp} gives log while no SMTP server is set and smtp once one is.

Ports besides HTTPS

Web traffic reaches every app through Cottage's proxy. An app that also needs another port, such as a Git host's SSH server, lists it under tcp_ports. Cottage gives each app a public port of its own for it and sets two variables, so the app can show the right address: HARBOR_TCP_HOST (a host name that reaches the server directly) and HARBOR_PORT_<NAME> (the port, e.g. HARBOR_PORT_SSH). The app's IP allowlist and blocklist apply to the port, and it stays closed until the owner finishes setup. Only use it for protocols that sign people in themselves. Forgejo's recipe is an example.

Outgoing mail

Apps send mail through the owner's own mail provider (for example their email host, or a sending service such as Postmark or Amazon SES). Cottage opens the submission ports 465, 587 and 2525; port 25 stays blocked, so apps can't deliver mail directly. If the app is configured by environment variables, offer these fields, in this order, and map them onto the app's own settings:

    - { key: SMTP_HOST,     label: SMTP server,   type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." }
    - { key: SMTP_PORT,     label: SMTP port,     type: int,    default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." }
    - { key: SMTP_USER,     label: SMTP username, type: string, editable: true, group: email }
    - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email }
    - { key: SMTP_FROM,     label: Send as,       type: string, editable: true, group: email, hint: "The From address, e.g. [email protected]. Your provider must allow it." }
    - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email }

Leave out a field only if the app has no such setting (Roundcube, for example, signs in to SMTP with the mailbox login). With SMTP_HOST empty the app must start and work with mail off, so test the recipe both ways. The one exception is an app that signs people in only by email (Fider, Rallly, Notifuse): give its SMTP_HOST required: true, so it can't be deployed without a mail provider, and say why in the hint. Apps that keep their mail settings in their own admin pages need no fields: say in the README where to find them. CI checks these fields' shape.

Cottage provides ${HARBOR_PUBLIC_URL} (the app's https:// address), ${HARBOR_HOSTNAME}, ${HARBOR_SLUG} and ${HARBOR_POD_ID}, and every parameter as a variable of the same name.

Helping people find and set up an app

These optional parts of a recipe make the app's page and first steps in Cottage plainer. CI checks their shape against schema/cottage.schema.json.

  • replaces in cottage.yml: up to four well-known services the app is a fair stand-in for, most familiar first: replaces: [Google Photos, iCloud Photos]. People search the catalog by what they're leaving. Leave it out rather than stretch it: Roundcube reads mail but doesn't host it, so it doesn't replace Gmail.

  • mobile in cottage.yml, with mobile_apps: true: the phone app people connect to their copy, with links checked by hand on the project's own site.

    mobile:
      name: Immich                    # as it appears in the stores
      ios: https://apps.apple.com/...
      android: https://play.google.com/store/apps/details?id=...
      server_field: Server Endpoint URL   # what the phone app calls the address field
    
  • sizes in cottage.yml: up to three named sizes beside the default, for apps people size by what they keep. Say what each holds in plain terms, without guessing at counts of photos or files. Resources left out stay as the default, and none may be below min_resources.

    sizes:
      - { label: A bigger library, note: "200 GB of room, like iCloud's 200 GB plan.", storage_mb: 204800 }
    

README.md: the setup checklist

An app's README.md is its "Getting set up" checklist on the app's page in Cottage, and nothing more. Settings, email, tips and exporting belong in the app's guide in the Cottage docs, which the checklist links to. These sections, in this order, and no others (CI checks them):

Section When What it says
## First login Apps with accounts or a password How the owner gets in the first time: create the admin account on the first visit, or sign in with the Admin password (or token) from Sign-in details on the app's page in Cottage. For a first_visit_claims_admin app, end with choosing Open it to everyone on the app's page in Cottage once the account exists.
## Get started Apps without a First login; optional for the rest The first real thing to do with it, when that isn't bringing data in: add the tracking code to a site, connect a database, send a first notification, write a first page.
## Bring your data Optional Getting existing things in: importing from the service it replaces, adding feeds or bookmarks you already have.
## Add people Apps with more than one account How to give other people their own accounts.
## Icon When the icon's licence asks for credit The credit. It isn't part of the checklist.
## Trademark When the project's trademark terms ask for a notice The notice, word for word as docs/licensing.md records it. It isn't part of the checklist.

Each checklist section is one step: at most 100 words, one to three short paragraphs or a short numbered list, with the app's own words for its menus in bold. Steps don't repeat each other (First login doesn't add people), don't mention the phone app (that's mobile in cottage.yml), and there's no title or any other heading.

cottage.yml text, the README and the icon can change without a new version: Cottage refreshes them for the version already listed. Anything in template.yml needs a bump (see below).

Rules (CI checks them):

  • Images from the official upstream, pinned by tag in template.yml, with the multi-arch digest recorded in cottage.yml.
  • Named volumes only. No host paths, published ports, privileged, network_mode, cap_add, or deploy/CPU/memory keys: Cottage sets the limits, the routing and the security options.
  • Containers run as a non-root user; list their volumes under x-harbor.volumes with that uid/gid.
  • First-run admin credentials are generated secret parameters, never defaults. If the app can only create its admin on first visit, set first_visit_claims_admin: true in cottage.yml: Cottage then keeps the app private to its owner until they've finished setup. Its health_path must be a plain path other than /, because that path stays reachable while the app is private. If a setting would stop the owner creating that first account (sign-ups off, invite only), give it setup_value with the value that lets them in: { key: SIGNUPS_ALLOWED, type: bool, default: "false", editable: true, setup_value: "true" }. The app runs with it while it's private, and the owner's own choice applies when they finish setup.
  • Outgoing mail goes through the owner's own provider (see Outgoing mail); port 25 is blocked.
  • A published version is never edited, not even a comment. Change anything in a recipe and bump the -c revision.
  • Copy follows the Cottage voice: plain, warm, specific, sentence case, no exclamation marks.

Testing a recipe

Run it locally with Docker Compose before opening a pull request:

scripts/local-test.sh apps/vaultwarden
KEEP=1 scripts/local-test.sh apps/vaultwarden   # leave it running so you can try it in a browser

The script starts the recipe close to the way Cottage runs it: parameters filled in, volumes owned by the right user, the default memory and CPU limits, no-new-privileges, and the app on 127.0.0.1 only. It passes when health_path answers 200, then removes everything it created. It needs Docker with Compose v2, python3 and curl.

Every pull request runs the same test on the recipes it changes, plus Cottage's own checks of every recipe. Those run the platform as the servers do, with an image allowlist built from this catalog, so the servers will accept every image a merged recipe uses. Make sure both pass; we can't merge a recipe until they do. Pull requests from forks get the Compose test, and we run Cottage's checks before merging.

docs/licensing.md lists which apps we can host under their licences, and on what conditions. Check it before writing a recipe for a new app.

Contributing

Open an issue or a pull request. Please don't include secrets, real credentials or personal data.

Licence

Apache-2.0. The apps themselves keep their own licences (listed in each cottage.yml), and their names and logos belong to their projects.

Automatic updates

A daily workflow (.gitea/workflows/bump.yml, scripts/bump.py) opens one pull request for each recipe whose upstream has published a newer stable release and a matching image. bump/track.yml says where each project publishes releases and how its image tag is built from the version; a recipe marked manual there is reported but never changed. The bot waits 3 days after a patch or minor release (14 for a major) and bumps only the first image, never the database or cache beside it. Bump branches may only change versions, image tags and digests: the "Bump guard" check fails anything else. Run scripts/bump.py audit to see how far behind each recipe is.

S
Description
No description provided
Readme Apache-2.0
729 KiB
0 Stars 2 Watchers 0 Forks
Languages
Python 82.4%
Shell 17.6%