Skip to content
merran
GitHubInstall

Merran documentation Get started

Install Merran

One container, SQLite included, no API keys required. You need Docker, local storage for recipes and photos, and a browser that can reach your server.

Examples use :next, the release channel recommended while Merran is in alpha. Pick your platform below; optional services can wait.

Docker Compose is the quick start for a Linux Docker host. Already use a manager? Choose its tab.

Run this in a new installation directory on the Docker host. It downloads the project’s Compose file, selects :next in .env, and starts Merran:

Terminal window
mkdir merran
cd merran
curl -fsSLO https://raw.githubusercontent.com/merran-app/merran/main/compose.yaml
printf 'MERRAN_IMAGE=ghcr.io/merran-app/merran:next\n' > .env
docker compose up -d
docker compose logs --tail 100 merran

Open http://YOUR-SERVER:3000 (or http://localhost:3000 on the Docker host). Find the setup code in Merran’s logs, then create your first household.

Persistent data: ./data/app, beside compose.yaml. Keep the directory and .env when updating or recreating the container.

Nothing else is required for SQLite. To change the host port, time zone or user IDs, use the copyable environment example below before starting, or edit .env and run docker compose up -d again.

Required for basic SQLite: no credentials or API keys. The quick start writes just MERRAN_IMAGE into .env to select the alpha release channel. This longer starter example exposes the settings most people change:

Download starter .env

.env — beside compose.yaml
# Starter settings for the project's compose.yaml on SQLite.
# Save as .env beside compose.yaml. No credentials are required.
MERRAN_IMAGE=ghcr.io/merran-app/merran:next
MERRAN_PORT=3000
TZ=UTC
PUID=1000
PGID=1000
# Optional: use your real hostname when adding HTTPS or a reverse proxy.
# MERRAN_PUBLIC_URL=https://food.example.com
# No DATABASE_URL: SQLite stays in ./data/app.
# The image makes a secret in /data; you do not need to invent one.
# Add AI and other optional credentials later in Merran's Settings.
Value Change it when…
MERRAN_IMAGE You choose another release channel or pin a specific published version.
MERRAN_PORT Port 3000 is already in use; change the browser URL to match.
TZ You want another IANA time zone for container logs. Household planning time is set in Merran.
PUID / PGID The data directory belongs to another numeric host user/group. These are not Merran login details.
MERRAN_PUBLIC_URL People reach Merran through a public hostname or reverse proxy.

For Docker Compose, save this as .env beside compose.yaml, then run docker compose up -d. To keep an existing configuration, merge the values you need instead of replacing the file. Review the full .env.example for advanced controls and the settings reference for module variables.

For TrueNAS, Dockge and Portainer, edit the inline environment block in your tab’s YAML instead. The published host port is the left side of "3000:3000"; the image version is the image line. Keep the right-hand container port 3000.

AI, nutrition and most optional modules can be configured later in Settings: on the Whole server side of pages such as AI and Recipes for everyone, or on the household’s side for one household. Environment-supplied module values override and lock those controls, so leave them unset if you want to manage them in the app. Keep .env private if you add keys, passwords or tokens.

  1. Open http://YOUR-SERVER:3000, using the IP/hostname and port from your installation.
  2. Open only Merran’s container logs. Find the searchable MERRAN SETUP CODE banner printed after the server starts listening. Postgres and Kokoro logs do not contain the code.
  3. Enter the code and create your account and household. Continue with first-run setup and your first meal.

You can also read the active code directly from the running container:

Terminal window
docker compose exec merran merran setup-code

For a standalone container, use docker exec merran merran setup-code.

Use local disk or a local ZFS dataset for SQLite, not an SMB/NFS-mounted database directory. The image’s entrypoint prepares ownership as root, then runs Merran as PUID:PGID (default 1000:1000). It can change ownership inside the mount, so use a dedicated Merran directory. The examples retain that entrypoint and do not set Compose user:.

Manager instructions follow their platform documentation; these particular TrueNAS, Dockge and Portainer interfaces have not been acceptance-tested for Merran. The verification record describes the container tests that were performed.

Advanced: add Postgres, Kokoro voice, FlareSolverr or a Cloudflare Tunnel

Choose the services you actually want. Postgres replaces SQLite; Kokoro reads cooking steps aloud; neither is needed for core recipes, planning, or shopping.

Setup What to run What to configure in Merran
SQLite + device speech merran only Nothing additional
Postgres merran + db DATABASE_URL
Self-hosted Kokoro speech merran + kokoro MERRAN_VOICE=kokoro and MERRAN_KOKORO_URL=http://kokoro:8880
FlareSolverr merran + flaresolverr MERRAN_FLARESOLVERR_URL=http://flaresolverr:8191
Both merran + db + kokoro Database URL and voice settings
Cloudflare Tunnel Add cloudflared to one of the above Public hostname, tunnel token, and trusted-proxy configuration

Existing SQLite users: adding Kokoro can use your existing data. Selecting Postgres does not migrate that data: it connects Merran to another database. Use the combined Postgres examples for a fresh installation; for an existing household, first read migration limits and keep your original installation and backup.

Use the project Compose profiles, or a complete manager file with no profiles or external .env dependency. Choose your platform below. For a new Postgres deployment, replace both password placeholders and set paths/IDs before deploying.

This method uses the full compose.yaml downloaded in the Docker Compose tab above, not one of the smaller host-manager files. The full file already defines db, kokoro, flaresolverr, and cloudflared, behind profiles.

For a new Postgres + Kokoro installation, edit .env beside compose.yaml. Replace the existing password line rather than adding a duplicate, and add these values:

MERRAN_IMAGE=ghcr.io/merran-app/merran:next
COMPOSE_PROFILES=postgres,voice
POSTGRES_PASSWORD=REPLACE_WITH_A_LONG_RANDOM_HEX_PASSWORD
DATABASE_URL=postgres://merran:REPLACE_WITH_A_LONG_RANDOM_HEX_PASSWORD@db:5432/merran
MERRAN_VOICE=kokoro
MERRAN_KOKORO_URL=http://kokoro:8880

Generate a random password with a password manager or openssl rand -hex 24, and replace both password placeholders with the same value. Hex avoids reserved URL characters. Keep .env private. Then run:

Terminal window
docker compose up -d
docker compose ps
docker compose logs --tail 100 db kokoro merran

Keeping COMPOSE_PROFILES in .env also enables those services during later pull, up, and down commands. Alternatively, supply --profile postgres --profile voice each time. See Docker’s profile behavior.

  • Postgres only: use COMPOSE_PROFILES=postgres, keep the password/database URL, and omit the two voice settings.
  • Kokoro with existing SQLite: use COMPOSE_PROFILES=voice and the two voice settings; leave DATABASE_URL unset.
  • Postgres and Kokoro: use the complete settings block above.
  • FlareSolverr: add flaresolverr to COMPOSE_PROFILES and set MERRAN_FLARESOLVERR_URL=http://flaresolverr:8191. It’s for importing from sites that turn servers away; see FlareSolverr.

The project file uses ./data/app for Merran and ./data/postgres for Postgres. Only Merran’s port 3000 is published; services reach each other by Docker names db and kokoro, not localhost. The .env file supplies both Compose substitutions and Merran’s environment through the project’s env_file entry. These instructions do not make the smaller SQLite examples gain additional services automatically.

  1. Prepare storage. For TrueNAS, create two dedicated local datasets and replace tank with your pool. Allow the Merran identity to use its app dataset; Postgres manages its own data ownership, so do not apply Merran’s UID to the database dataset. Its startup must be able to initialize and write that dataset. For Dockge, save the stack first, then create data and postgres beside its Compose file. For Portainer, create both directories on the selected endpoint.
  2. Edit the file. Replace both password placeholders with the same random hex password, choose permitted Merran PUID/PGID, and adjust host port/time zone. The database does not use Merran’s PUID/PGID variables. No 5432 or 8880 host mapping is needed.
  3. Deploy the whole stack using your manager’s steps. The database health check gates Merran startup. Kokoro’s container may be started before its model is ready; wait for its logs to show it is serving before testing speech.
  4. Verify Postgres. Open http://YOUR-SERVER:3000/api/health/ready (with your chosen port). Expect status: "ready" and database: "postgres", then use Merran’s setup code from its logs.
  5. Verify Kokoro. In Settings → Recipes → Whole server → Voice, check the provider/address and use Hear … to preview a voice. Environment-set values are managed by Compose; change them there and recreate Merran. Kokoro produces speech audio; microphone commands still depend on HTTPS and browser support.

To use Postgres without Kokoro, remove the kokoro service, its depends_on entry, and the two voice environment values. To use Kokoro with SQLite, remove the db service, its dependency, and DATABASE_URL; preserve Merran’s existing /data mount. There is no automatic cross-database migration in either edit.

Kokoro uses the CPU image in this example, so no GPU/device mapping is required. It adds image/model storage and CPU/RAM use; startup and speech speed depend on the host. See Kokoro-FastAPI for image/platform options; use a tested release tag if you need a fixed version. If speech falls back to the device, inspect the Kokoro logs and confirm http://kokoro:8880 is reachable from Merran. The voice guide covers playback and provider troubleshooting.

The Postgres 18 image mounts at /var/lib/postgresql, not the older /var/lib/postgresql/data layout. Keep this major version and mount together; see the official image notes. Once initialized, changing the Compose password does not change the database role’s password. Back up Postgres with a database dump and Merran’s app files; do not use the SQLite-only directory-backup procedure for this stack.

For the project Compose file, create a remotely managed tunnel in Cloudflare, set its published hostname’s service to http://merran:3000, and add these values to .env:

# Keep any existing profiles: add tunnel to the comma-separated list.
COMPOSE_PROFILES=postgres,voice,tunnel
CLOUDFLARE_TUNNEL_TOKEN=REPLACE_WITH_YOUR_TUNNEL_TOKEN
MERRAN_PUBLIC_URL=https://food.example.com

If using SQLite/device speech, use COMPOSE_PROFILES=tunnel instead. Run docker compose up -d to start the connector and recreate Merran with its public URL. The hostname must belong to your configured tunnel; food.example.com is a placeholder.

For a UI-managed file, add this service under its existing services: key, alongside merran, db, and/or kokoro:

cloudflared:
image: cloudflare/cloudflared:latest
restart: unless-stopped
command: tunnel --no-autoupdate run
environment:
TUNNEL_TOKEN: REPLACE_WITH_YOUR_TUNNEL_TOKEN
depends_on:
- merran

Indent this service two spaces to match merran. Add MERRAN_PUBLIC_URL: https://food.example.com under Merran’s environment, using your real hostname. Keep the token private. Both containers must share the stack’s network for merran:3000 to resolve. Configure trusted proxies and verify sign-in/live updates using HTTPS and remote access; starting a connector alone does not finish DNS/hostname/proxy setup.

Most modules need settings or credentials, rather than another Compose container:

Feature Installation/configuration
AI imports, assistant, and discovery Add supported server/household provider keys through AI setup. Postgres or Kokoro does not provide an AI model.
Nutrition Add a USDA key and/or eligible AI through Nutrition.
Video import The Merran image includes yt-dlp and ffmpeg; configure the module and AI through Video imports. No separate tools container is required.
Generated photos Enable the module and an eligible image-provider key through AI recipe photos.
OpenAI speech Configure an eligible key and choose OpenAI in Voice; no Kokoro container is needed. See server voices.
Kroger / experimental Walmart Follow Kroger setup or Walmart setup; Walmart also uses the browser extension.

These are additional setup paths, not a reason to enable every module. The environment-variable settings reference lists the supported names. Compose parsing is checked for the examples; the new combined stack and host-manager interfaces have not received live provider/device acceptance testing.

Before an update, stop Merran and back up the whole directory mounted at /data, plus your Compose configuration. For the examples above, those directories are:

Example Host directory
TrueNAS /mnt/tank/apps/merran
Dockge (default layout) /opt/stacks/merran/data
Portainer /srv/merran/data

Adapt the backup and restore walkthrough to your actual mount path. For a consistent SQLite dataset snapshot, stop Merran first; keep a separate backup and verify a restore. Recreating a container with the same data does not replace backing it up. Follow updating and backups before changing image versions.

For remote access, follow HTTPS and remote access and set MERRAN_PUBLIC_URL to the address people actually use. The commented food.example.com value is a placeholder, not a working hostname. HTTP on your LAN is enough to begin setup; phone installation/sharing and some browser features need HTTPS.

For Postgres and/or Kokoro, use the complete optional-service setup. The Postgres guide adds external-database and migration details. The minimal host-manager examples remain SQLite-only.

The examples use :next while Merran is in alpha. Pulling this tag and recreating the container installs the newest published release, including alpha releases. Keep the same data directory and back up before updating.

  • next follows the newest published release, including alpha releases.
  • latest is the same as next until the first full release. From then on it follows full releases only, and becomes the recommended tag.
  • edge follows development on main, for testing changes before a release.
  • A specific release tag keeps an installation on that version. To update a pinned installation, change MERRAN_IMAGE in .env, the YAML image line or the docker run image before pulling and recreating.

See published releases for available versions and the verification record for tested configurations.

Check that the container is running with Docker’s container list, then inspect its logs. Confirm that port 3000 is available and your firewall permits access from your device. If you change MERRAN_PORT in the Compose environment file, use that port in the browser.

  • ERR_MODULE_NOT_FOUND for zod in shared telemetry: the image is missing a runtime dependency. Install a corrected image using the update instructions; preserve your database and data mount. Changing database permissions does not fix this packaging error.
  • Bind source path does not exist: create the directory on the selected Docker host or correct the YAML path. A path on your laptop is not a path on a remote NAS.
  • Permission denied / operation not permitted: confirm dataset ACLs, parent traversal, and matching PUID/PGID. A read-only dataset or ACL that prevents startup ownership changes needs host-side correction; avoid granting access to the whole pool.
  • Address already in use: change only the published host port, then recreate the container and use that port in your URL.
  • Setup appears again after redeploy: check the actual /data bind source before creating another account. You may have mounted an empty directory rather than your existing installation.

Continue with first-run setup.

© 2026 Kyle Johnson. Documentation: CC BY 4.0. Merran: AGPL-3.0-or-later.