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.
Choose your installation
Section titled “Choose your installation”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:
mkdir merrancd merrancurl -fsSLO https://raw.githubusercontent.com/merran-app/merran/main/compose.yamlprintf 'MERRAN_IMAGE=ghcr.io/merran-app/merran:next\n' > .envdocker compose up -ddocker compose logs --tail 100 merranOpen 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.
Use Docker-based Apps on TrueNAS SCALE 24.10 or newer, with an Apps pool prepared. This is not a TrueNAS CORE or older Kubernetes-app template. See TrueNAS’s custom-app guide.
- Create a dedicated local dataset, such as
tank/apps/merran, at/mnt/tank/apps/merran. Replacetankwith your pool. Grant the app identity write access and traversal through its parents. The example uses568:568(apps); choose IDs and dataset ACLs appropriate to your NAS. - Open Apps → Discover Apps → ⋮ → Install via YAML and name the app
merran. - Copy the complete YAML below. Change the dataset path, user/group IDs, host port and time zone as needed, then save to deploy.
Download TrueNAS YAML
# TrueNAS Docker-based Apps: create this dedicated dataset before deployment.# Replace tank and the user/group IDs with your own pool and permitted identity.services: merran: image: ghcr.io/merran-app/merran:next restart: unless-stopped ports: - "3000:3000" environment: TZ: UTC PUID: "568" PGID: "568" # MERRAN_PUBLIC_URL: https://food.example.com volumes: - type: bind source: /mnt/tank/apps/merran target: /data bind: create_host_path: falseEnvironment: edit TZ, PUID and PGID directly under environment. For a public address, uncomment MERRAN_PUBLIC_URL and replace the example hostname. No separate .env is read by this file.
Open http://YOUR-NAS-IP:3000 and read the merran container’s logs for the setup code. Follow Finish setup. Preserve the dataset and exported YAML when recreating the app. To update, pull the current :next image and redeploy from the app editor.
Dockge must already be running. Its default stacks directory is /opt/stacks, mapped at the same absolute path inside Dockge and on the Docker host (Dockge’s installation requirements).
-
Create a stack named merran, paste the YAML below, and save without deploying. Dockge creates the stack directory.
-
Create its data directory on the Docker host:
Terminal window sudo mkdir -p /opt/stacks/merran/data -
If your stacks directory differs, use
merran/datainside that directory. Set the YAML’sPUID/PGIDfor your host, then deploy the saved stack.
Download Dockge YAML
# With Dockge's default /opt/stacks layout, this is /opt/stacks/merran/data.# Create the data directory on the Docker host before deploying.services: merran: image: ghcr.io/merran-app/merran:next restart: unless-stopped ports: - "3000:3000" environment: TZ: UTC PUID: "1000" PGID: "1000" # MERRAN_PUBLIC_URL: https://food.example.com volumes: - type: bind source: ./data target: /data bind: create_host_path: falseEnvironment: edit TZ, PUID and PGID in this stack’s environment block. Uncomment MERRAN_PUBLIC_URL only when you have a real public address. These values are inline; no .env is required.
Open http://YOUR-DOCKER-HOST:3000 and find the code in the stack’s merran logs. The data mount resolves to /opt/stacks/merran/data with Dockge’s default layout. Keep this directory and the Compose file when updating; pull the current :next image before redeploying the stack.
Permission trouble on a Linux host?
For a dedicated Merran directory using 1000:1000, these commands prepare that directory without changing unrelated files:
sudo chown 1000:1000 /opt/stacks/merran/datasudo chmod 750 /opt/stacks/merran/dataUse your actual IDs and path. Merran’s entrypoint prepares ownership inside /data before dropping privileges. For an existing directory with nested ownership problems, inspect those files and permissions before changing them. On TrueNAS, use dataset ACLs and parent traversal permissions instead of applying these Linux commands to an ACL-managed dataset.
If Dockge runs on TrueNAS, use a dataset-backed stacks directory or an absolute dedicated dataset path as in the TrueNAS tab. Storage belongs to the Docker host, not the computer displaying Dockge.
Use Docker Standalone, not Swarm. Create /srv/merran/data on the selected Docker endpoint first, or choose an existing dedicated directory. On a TrueNAS endpoint, use its /mnt/POOL/... dataset path and permitted IDs.
- Open Stacks → Add stack → Web editor and name the stack
merran. - Paste the YAML below, changing the endpoint’s data path, user/group IDs, host port and time zone.
- Choose Deploy the stack. You can also use Upload with the download below (Portainer’s stack guide).
Download Portainer YAML
# Docker Standalone: create this dedicated directory on the selected endpoint.# Replace the host path and user/group IDs for that endpoint.services: merran: image: ghcr.io/merran-app/merran:next restart: unless-stopped ports: - "3000:3000" environment: TZ: UTC PUID: "1000" PGID: "1000" # MERRAN_PUBLIC_URL: https://food.example.com volumes: - type: bind source: /srv/merran/data target: /data bind: create_host_path: falseEnvironment: edit values directly under environment. This self-contained file does not read an external .env or require Portainer’s stack-variable editor. Uncomment MERRAN_PUBLIC_URL if using a real public hostname.
Open http://YOUR-DOCKER-HOST:3000 and inspect the merran service container’s logs for the setup code. The absolute data path keeps persistence independent of Portainer’s own stack directory.
To update, choose Update the stack and re-pull the :next image (Portainer’s update guide). Keep the data directory and exported YAML.
In a new directory on the Docker host:
mkdir datadocker run -d --name merran --restart unless-stopped \ -p 3000:3000 -v "$(pwd)/data:/data" \ ghcr.io/merran-app/merran:nextdocker logs --tail 100 merranOpen http://YOUR-SERVER:3000. The application stores its database, files and secret directly in ./data. Use the setup code in the logs to finish setup.
Environment: pass settings using -e TZ=UTC, -e PUID=1000 and -e PGID=1000 before the image name, or use --env-file .env with the example below. Set the host port in -p, and choose the image tag in the command: MERRAN_PORT and MERRAN_IMAGE are Compose substitutions, not standalone-container settings.
Environment variables
Section titled “Environment variables”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
# 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:nextMERRAN_PORT=3000TZ=UTCPUID=1000PGID=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.
Finish setup
Section titled “Finish setup”- Open http://YOUR-SERVER:3000, using the IP/hostname and port from your installation.
- 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.
- 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:
docker compose exec merran merran setup-codeFor 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.
Optional services with Compose
Section titled “Optional services with Compose”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.
Complete optional-service setup
Section titled “Complete optional-service setup”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.
Project Compose file: enable the profiles
Section titled “Project Compose file: enable the profiles”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:nextCOMPOSE_PROFILES=postgres,voicePOSTGRES_PASSWORD=REPLACE_WITH_A_LONG_RANDOM_HEX_PASSWORDDATABASE_URL=postgres://merran:REPLACE_WITH_A_LONG_RANDOM_HEX_PASSWORD@db:5432/merranMERRAN_VOICE=kokoroMERRAN_KOKORO_URL=http://kokoro:8880Generate 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:
docker compose up -ddocker compose psdocker compose logs --tail 100 db kokoro merranKeeping 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=voiceand the two voice settings; leaveDATABASE_URLunset. - Postgres and Kokoro: use the complete settings block above.
- FlareSolverr: add
flaresolverrtoCOMPOSE_PROFILESand setMERRAN_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.
Download TrueNAS Postgres + Kokoro YAML
# Fresh Postgres installation with local Kokoro speech.# Replace BOTH password placeholders before deploying.# Create two dedicated datasets; replace tank with your pool and set ACLs.services: merran: image: ghcr.io/merran-app/merran:next restart: unless-stopped ports: - "3000:3000" environment: TZ: UTC PUID: "568" PGID: "568" DATABASE_URL: postgres://merran:REPLACE_WITH_A_LONG_RANDOM_HEX_PASSWORD@db:5432/merran MERRAN_VOICE: kokoro MERRAN_KOKORO_URL: http://kokoro:8880 # MERRAN_PUBLIC_URL: https://food.example.com volumes: - type: bind source: /mnt/tank/apps/merran target: /data bind: create_host_path: false depends_on: db: condition: service_healthy kokoro: condition: service_started
db: image: postgres:18 restart: unless-stopped environment: POSTGRES_USER: merran POSTGRES_DB: merran POSTGRES_PASSWORD: REPLACE_WITH_A_LONG_RANDOM_HEX_PASSWORD volumes: - type: bind source: /mnt/tank/apps/merran-postgres target: /var/lib/postgresql bind: create_host_path: false healthcheck: test: ["CMD-SHELL", "pg_isready -U merran -d merran"] interval: 5s timeout: 5s retries: 10
kokoro: image: ghcr.io/remsky/kokoro-fastapi-cpu:latest restart: unless-stopped # Internal port 8880 only; no GPU or host port required for this example.Download Dockge Postgres + Kokoro YAML
# Fresh Postgres installation with local Kokoro speech.# Replace BOTH password placeholders before deploying.# Save the Dockge stack, then create data and postgres directories beside it.services: merran: image: ghcr.io/merran-app/merran:next restart: unless-stopped ports: - "3000:3000" environment: TZ: UTC PUID: "1000" PGID: "1000" DATABASE_URL: postgres://merran:REPLACE_WITH_A_LONG_RANDOM_HEX_PASSWORD@db:5432/merran MERRAN_VOICE: kokoro MERRAN_KOKORO_URL: http://kokoro:8880 # MERRAN_PUBLIC_URL: https://food.example.com volumes: - type: bind source: ./data target: /data bind: create_host_path: false depends_on: db: condition: service_healthy kokoro: condition: service_started
db: image: postgres:18 restart: unless-stopped environment: POSTGRES_USER: merran POSTGRES_DB: merran POSTGRES_PASSWORD: REPLACE_WITH_A_LONG_RANDOM_HEX_PASSWORD volumes: - type: bind source: ./postgres target: /var/lib/postgresql bind: create_host_path: false healthcheck: test: ["CMD-SHELL", "pg_isready -U merran -d merran"] interval: 5s timeout: 5s retries: 10
kokoro: image: ghcr.io/remsky/kokoro-fastapi-cpu:latest restart: unless-stopped # Internal port 8880 only; no GPU or host port required for this example.Download Portainer Postgres + Kokoro YAML
# Fresh Postgres installation with local Kokoro speech.# Replace BOTH password placeholders before deploying.# Create both directories on the selected Docker Standalone endpoint first.services: merran: image: ghcr.io/merran-app/merran:next restart: unless-stopped ports: - "3000:3000" environment: TZ: UTC PUID: "1000" PGID: "1000" DATABASE_URL: postgres://merran:REPLACE_WITH_A_LONG_RANDOM_HEX_PASSWORD@db:5432/merran MERRAN_VOICE: kokoro MERRAN_KOKORO_URL: http://kokoro:8880 # MERRAN_PUBLIC_URL: https://food.example.com volumes: - type: bind source: /srv/merran/data target: /data bind: create_host_path: false depends_on: db: condition: service_healthy kokoro: condition: service_started
db: image: postgres:18 restart: unless-stopped environment: POSTGRES_USER: merran POSTGRES_DB: merran POSTGRES_PASSWORD: REPLACE_WITH_A_LONG_RANDOM_HEX_PASSWORD volumes: - type: bind source: /srv/merran/postgres target: /var/lib/postgresql bind: create_host_path: false healthcheck: test: ["CMD-SHELL", "pg_isready -U merran -d merran"] interval: 5s timeout: 5s retries: 10
kokoro: image: ghcr.io/remsky/kokoro-fastapi-cpu:latest restart: unless-stopped # Internal port 8880 only; no GPU or host port required for this example.Use the Docker Compose tab for a complete multi-service deployment. A single docker run command does not create Postgres, Kokoro or a tunnel. Preserve your existing data mount when moving to Compose.
- Prepare storage. For TrueNAS, create two dedicated local datasets and replace
tankwith 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 createdataandpostgresbeside its Compose file. For Portainer, create both directories on the selected endpoint. - 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’sPUID/PGIDvariables. No5432or8880host mapping is needed. - 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.
- Verify Postgres. Open
http://YOUR-SERVER:3000/api/health/ready(with your chosen port). Expectstatus: "ready"anddatabase: "postgres", then use Merran’s setup code from its logs. - 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.
Optional Cloudflare Tunnel
Section titled “Optional Cloudflare Tunnel”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,tunnelCLOUDFLARE_TUNNEL_TOKEN=REPLACE_WITH_YOUR_TUNNEL_TOKENMERRAN_PUBLIC_URL=https://food.example.comIf 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: - merranIndent 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.
Other optional features
Section titled “Other optional features”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.
Backups, updates, and HTTPS
Section titled “Backups, updates, and HTTPS”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.
Choose an image
Section titled “Choose an image”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_IMAGEin.env, the YAMLimageline or thedocker runimage before pulling and recreating.
See published releases for available versions and the verification record for tested configurations.
If the page does not open
Section titled “If the page does not open”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_FOUNDforzodin 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
/databind 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.