Deploy Mealie on Docker: Self-Hosted Recipe Manager and Meal Planner (Paprika Alternative)

Family recipes tend to end up everywhere—browser bookmarks, phone screenshots, and paid apps like Paprika that charge separately for iOS ($4.99), Android ($4.99), and desktop ($29.99). Running your own recipe server fixes that mess. Mealie gives you a fast web interface, automatic recipe scraping, and real-time shared grocery lists on hardware you already own.

Here is how to deploy Mealie with Docker Compose, keep its database safe, and wire it up for daily kitchen use.

Quick Start: Spin Up Mealie in 5 Minutes

You only need a Linux box or a Raspberry Pi 4 (2 GB RAM or more) with Docker and Docker Compose installed. Keeping everything in a single directory makes backups and server migrations painless later.

Start by creating a project folder and a data directory inside it:

mkdir -p ~/homelab/mealie/mealie-data
cd ~/homelab/mealie

Create a docker-compose.yml file in that directory and paste in this configuration:

services:
  mealie:
    image: ghcr.io/mealie-recipes/mealie:v2.4.0
    container_name: mealie
    restart: unless-stopped
    ports:
      - "9925:9000"
    deploy:
      resources:
        limits:
          memory: 1000M
    volumes:
      - ./mealie-data:/app/data
    environment:
      ALLOW_SIGNUP: "true"
      PUID: 1000
      PGID: 1000
      TZ: Asia/Ho_Chi_Minh
      BASE_URL: http://localhost:9925

Set TZ to your local timezone (such as America/New_York or Europe/London). Swap BASE_URL for your server’s LAN IP or domain name, like http://192.168.1.50:9925. If your Linux user ID isn’t 1000, run id in your terminal and update PUID and PGID to match.

Boot the container in the background and watch the startup logs:

docker compose up -d
docker compose logs -f mealie

Startup usually takes 10 to 15 seconds. When the logs report that Uvicorn is listening on port 9000, open http://<your-server-ip>:9925 in your browser and register your first admin account.

How Mealie Stores Data and Handles Config

Knowing what lives inside your mounted folder saves real time when you upgrade versions or move to a new host.

Data Persistence: SQLite vs. PostgreSQL

Mealie writes all persistent state to /app/data inside the container, which maps to ./mealie-data on your host. Three items matter most there:

  • mealie.db: The SQLite database storing recipes, user accounts, meal plans, and shopping lists.
  • recipes/: Downloaded and uploaded dish photos, grouped in subfolders by recipe ID.
  • backups/: Compressed zip archives created by Mealie’s internal backup scheduler.

SQLite handles a household library of 500 to 5,000 recipes without breaking a sweat, and it needs no extra containers. Already running PostgreSQL in your HomeLab, or expecting heavy concurrent edits? Switch engines by adding these environment variables:

    environment:
      DB_ENGINE: postgres
      POSTGRES_USER: mealie
      POSTGRES_PASSWORD: strong_password_here
      POSTGRES_SERVER: postgres_host
      POSTGRES_PORT: 5432
      POSTGRES_DB: mealie

Key Environment Variables Explained

  • ALLOW_SIGNUP: Leave this set to true while your household creates accounts. Change it to false and redeploy right after, especially if Mealie is reachable from the internet.
  • BASE_URL: Mealie builds invite links, password resets, and OpenID Connect callbacks from this address. Update it whenever you change ports or add a domain.
  • TZ: Scheduled backups and daily meal-plan rollovers rely on container time. A mismatched timezone can shift tonight’s dinner onto tomorrow’s calendar.

Importing Recipes and Migrating from Paprika

Web scraping is where Mealie earns its keep. Click Create > Import Recipe from URL and drop in any food blog link. Mealie reads the page’s schema.org/Recipe JSON-LD metadata, skips the ads and backstory, and saves clean ingredients, steps, and cook times.

Coming from Paprika? Export your library from the Paprika app as a .paprikarecipes archive. Head to Settings > Data Management in Mealie, pick the Paprika importer, and upload the file—categories, notes, and photos transfer together.

Sharing with a partner or roommates takes one extra step: create a Household in the admin panel and send them an invite link. Everyone sees the same weekly meal calendar and can check off grocery items simultaneously.

Reverse Proxy, Backups, and API Automation

Once your collection passes a hundred recipes, plain HTTP on your LAN starts to feel limiting.

Serving Mealie Over HTTPS with a Reverse Proxy

iOS Safari and Android Chrome block Progressive Web App (PWA) installs over unencrypted HTTP. Put Caddy in front of Mealie to get automatic Let’s Encrypt TLS certificates in three lines:

recipes.yourdomain.com {
    reverse_proxy 127.0.0.1:9925
}

Update BASE_URL in docker-compose.yml to https://recipes.yourdomain.com, then run docker compose up -d so Compose recreates the container with the new setting.

Automating Off-Host Backups

Mealie’s built-in scheduler writes zip backups to mealie-data/backups/—roughly 50 to 150 MB for a few hundred recipes with photos. Those archives won’t help if your host SSD dies, though. Mirror the folder to a NAS or second drive every night with a short script:

#!/bin/bash
BACKUP_DIR="/mnt/nas-backups/mealie"
mkdir -p "$BACKUP_DIR"
rsync -a --delete "$HOME/homelab/mealie/mealie-data/" "$BACKUP_DIR/"

Save that script as ~/homelab/mealie/backup.sh and run chmod +x ~/homelab/mealie/backup.sh. Schedule it for 3:00 AM daily via crontab -e:

0 3 * * * /home/youruser/homelab/mealie/backup.sh

If you want zero risk of copying a mid-write SQLite file, point rsync at mealie-data/backups/ instead of the live database directory.

Querying Mealie via the REST API

Mealie runs on FastAPI, so every UI action maps to an OpenAPI endpoint. Browse the interactive Swagger docs at https://recipes.yourdomain.com/docs, generate a long-lived API token in your profile, and pull tonight’s dinner into a script or Home Assistant card:

curl -s -H "Authorization: Bearer YOUR_API_TOKEN" \
  "https://recipes.yourdomain.com/api/households/mealplans/today" | jq .

Practical Tips for Day-to-Day HomeLab Use

  • Pin your Docker image tag: Stick to an explicit tag like v2.4.0 instead of latest. A surprise major release won’t break your instance five minutes before you start cooking.
  • Lock down public signups: Flip ALLOW_SIGNUP to false and redeploy as soon as your family accounts exist.
  • Install Mealie as a mobile PWA: Open your HTTPS URL in Safari (iOS) or Chrome (Android) and tap Add to Home Screen. It opens full-screen without browser bars, which helps when checking off aisles at the store.
  • Cap container memory: Mealie idles around 120 to 180 MB of RAM, yet bulk photo imports can spike usage. A 1000M limit keeps runaway jobs from starving other services on a 4 GB node.
  • Verify one restore early: Spin up a throwaway container on port 9926 and import a zip from mealie-data/backups/. Ten minutes of testing beats discovering a broken backup months later.
Share: