Skip to content
CookDex docs

Install CookDex

CookDex runs on your server next to Mealie, from GitHub Container Registry (ghcr.io/thekannen/cookdex). This page ends with the container running; Getting started picks up at first login.

  1. Download the compose file:

    Terminal window
    mkdir -p cookdex && cd cookdex
    curl -fsSL https://raw.githubusercontent.com/thekannen/cookdex/main/compose.ghcr.yml -o compose.yaml

    No .env file is required. To override defaults (port, base path, etc.), optionally download and edit .env.example:

    Terminal window
    curl -fsSL https://raw.githubusercontent.com/thekannen/cookdex/main/.env.example -o .env
  2. Start the service:

    Terminal window
    docker compose pull cookdex
    docker compose up -d cookdex
  3. Check that it’s running:

    Terminal window
    curl -k https://localhost:4820/cookdex/api/v1/health

Next: open https://localhost:4820/cookdex and follow Getting started.

CookDex is in Unraid’s Community Apps.

  1. In Unraid, open the Apps tab, search for CookDex and click Install.

  2. Keep the defaults, or change them before clicking Apply:

    Setting Default What it is
    Web UI port 4820 Change the host side if 4820 is taken.
    Data /mnt/user/appdata/cookdex/cache → /app/cache Settings, accounts, run history, encrypted secrets and backups. Keep it when updating.

    Show more settings has the Logs and Reports folders (under /mnt/user/appdata/cookdex/), HTTPS (set it to false behind a reverse proxy that handles HTTPS), URL path (/cookdex), Master key (see Notes) and SSH key folder (empty unless you set up a database connection over SSH).

  3. Open https://<server>:4820/cookdex and accept the self-signed certificate warning.

Next: follow Getting started to create the owner account and connect Mealie. If Mealie runs on the same Unraid server, its address is http://host.docker.internal:<Mealie's port>, since the template adds host.docker.internal for the host.

The template uses the latest tag; pick beta from the tag list to try releases early (see Image tags).

Host path Container path Purpose
./cache /app/cache SQLite state database, encryption key, TLS certificate, and copies of deleted recipes
./logs /app/logs Task run log files
./reports /app/reports Audit and maintenance reports

The ./cache volume stores the state database (settings, run history, schedules), the auto-generated encryption key, the TLS certificate, and the copies of deleted recipes kept in Recently deleted. Keep this volume persistent.

Update in place; your settings, run history and schedules stay in ./cache.

Terminal window
docker compose pull cookdex
docker compose up -d --remove-orphans cookdex

After updating, verify login and check /cookdex/api/v1/health.

There’s nothing to change before or after this update. On its first start, 2026.12.1 makes these changes itself and says where it did:

  • Old Mealie variable names. If your compose file or .env still sets MEALIE_BASE_URL or MEALIE_API_TOKEN, CookDex saves them in Settings as the Mealie address and API token. The current names are MEALIE_URL and MEALIE_API_KEY; an old name is ignored when the new one already has a value. A note at the top of Settings says what was saved until you click Got it, and the startup log says it too. You can then delete the old lines; the old names aren’t read any more.
  • Automations. Some older automations are changed and carry a note saying how. See After updating to 2026.12.1.
  • A database connection over SSH. The first database connection trusts the Mealie host’s SSH key and prints its fingerprint in that run’s log. See The Mealie host’s SSH key.

Since 2026.10.2 the image is about 35 MB larger to download (about 150 MB more on disk), because CookDex now links ingredients itself; see Link ingredients.

Tag Tracks
latest The most recent stable release (default). Betas never move it.
beta The most recent beta, for trying the next release early
v2026.x.y A specific release, never moved; betas are v2026.x.y-beta.N
edge The newest build from main, which may include unreleased changes
sha-<commit> A specific main build; only the 20 most recent are kept

To use a different tag, set COOKDEX_TAG in .env.

  • All runtime settings are managed from the Settings page after login.
  • Secrets (API tokens, the database connection string) are encrypted at rest. By default the key is generated on first start and kept in ./cache/webui/.secrets, next to the database it protects, so anyone with a copy of ./cache can decrypt them. To keep the key separate, set MO_WEBUI_MASTER_KEY (a Fernet key: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())") or MO_WEBUI_MASTER_KEY_FILE pointing at a file outside that volume, such as a Docker secret. Changing the key later makes saved secrets unreadable; Settings then asks for them again.
  • Sign-in sessions are stored as SHA-256 hashes, so a copy of the database can’t be used to sign in.
  • Everything else (Mealie, AI, the optional database connection) is set in Settings. The optional .env file only holds container settings such as the port, base path and HTTPS. Older compose or .env files that set Mealie, AI or database values still work: CookDex copies them into Settings on first start, and a note in Settings says so until you click Got it. After that the Settings page wins, and you can delete those lines.