What is Mealie, and why self-host it?
Mealie is a self-hosted recipe manager that brings recipes, meal plans and shopping lists into one web application. You can import a recipe from a supported website, organise your own collection and plan meals from the same library. A small VPS makes that library available to your household without leaving a computer running at home. Explore Mealie's features.
Version 3.31.0, released on 13 November 2026, adds PDF exports for recipes and cookbooks, a daily meal-planner view and security fixes. This guide uses that release with Docker Compose, SQLite and Caddy for HTTPS. Check the official release notes for the version you deploy.
Keep a useful collection
Save family recipes alongside imported favourites. Use categories, tags and cookbooks to find something you want to make again.
Plan together
Build a household meal plan and shopping list. Give people their own accounts and the permissions they need.
Control the installation
Choose the server, hostname and update schedule. Keep a tested recovery copy so your collection can move with you.
Prepare the VPS, hostname and ports
Use a fresh 64-bit Linux VM with Docker Engine and the Compose plugin installed. Our practical starting suggestion is 2 GB RAM, leaving room for the OS and HTTPS proxy alongside the application's memory limit. That is sizing guidance, not a performance benchmark. Increase resources as your collection and measured usage grow.
The upstream guide recommends SQLite for smaller installations and warns against putting its database on network-attached storage. This walkthrough keeps it in a local Docker volume. PostgreSQL is an alternative for heavier concurrent use and features such as fuzzy search. Review the SQLite deployment and PostgreSQL option.
| Component | Purpose | Configuration |
|---|---|---|
| recipes.example.com | Public HTTPS address | Replace with your own hostname; point its A record to the VPS |
| TCP 80 and 443 | Caddy HTTP and HTTPS | Allow inbound; ensure no other service occupies these ports |
| 127.0.0.1:9925 | Private first-run access | Loopback only; reach it through an SSH tunnel |
| /app/data | Mealie database and files | Persist in a local named volume and back it up |
Publish an AAAA record only if IPv6 reaches the same HTTPS service. Keep normal SSH access available and check your host and upstream firewalls. Follow our Docker installation guide if the engine or Compose plugin is missing.
Create the Docker Compose deployment
On the VPS, make a dedicated directory and check the tooling. Run these commands from an account authorised to use Docker:
mkdir -p "$HOME/mealie"
cd "$HOME/mealie"
umask 077
docker version
docker compose version
sudo ss -ltnp
Save the following as compose.yaml. Replace the hostname and timezone before starting. The image already has a health check; Caddy waits for that check when it starts.
services:
mealie:
image: ghcr.io/mealie-recipes/mealie:v3.31.0
restart: unless-stopped
mem_limit: 1000m
ports:
- "127.0.0.1:9925:9000"
volumes:
- mealie-data:/app/data
environment:
ALLOW_SIGNUP: "false"
ALLOW_PASSWORD_LOGIN: "true"
DB_ENGINE: sqlite
PUID: "1000"
PGID: "1000"
TZ: Europe/London
BASE_URL: https://recipes.example.com
caddy:
image: caddy:2.11.9-alpine
profiles: [public]
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data
- caddy-config:/config
depends_on:
mealie:
condition: service_healthy
volumes:
mealie-data:
caddy-data:
caddy-config:
The 1000m limit applies to the Mealie container. Caddy and the operating system still need memory outside it. The public proxy is placed behind a Compose profile so the first-run application can be configured before it is exposed.
In the same directory, create a file named Caddyfile with the same hostname:
recipes.example.com {
encode zstd gzip
reverse_proxy mealie:9000
}
Caddy reaches Mealie by its Compose service name. Its own localhost would refer to the Caddy container. The proxy's certificate state and configuration are persistent volumes. See the official Caddy image and reverse-proxy reference.
Start Mealie privately and replace the default login
Validate the file, pull the application image and start Mealie on its own. Leave the public profile off for now:
docker compose config --quiet
docker compose pull mealie
docker compose up -d mealie
docker compose ps
docker compose logs --tail=80 mealie
On your own computer, open a second terminal and create an SSH tunnel. Replace the SSH user and server address with your details:
ssh -N -L 19925:127.0.0.1:9925 your-user@YOUR_VPS_IP
Keep that terminal open and visit http://127.0.0.1:19925 in your browser. The documented initial login is changeme@example.com with password MyPassword. Complete the setup wizard, set your own administrator details and choose a unique password. Log out and confirm the replacement login before continuing. Check the official installation steps.
Review the site settings at /admin/site-settings. Registration stays disabled in this example, while password login remains enabled. SMTP, external identity providers and AI services are separate optional configuration choices; this installation does not require an AI API key.
Enable HTTPS through Caddy
Once the administrator account is configured, confirm DNS points to this server and TCP 80/443 are reachable. Caddy can obtain and renew a certificate for your hostname when those requirements are met. Review automatic HTTPS requirements.
docker compose --profile public pull caddy
docker compose --profile public up -d
docker compose --profile public ps
docker compose --profile public logs --tail=80 caddy
curl -I https://recipes.example.com
Open your HTTPS hostname and check the new login, recipe pages and image loading. Then close the temporary SSH tunnel. Keep the app's host mapping bound to 127.0.0.1; public traffic should enter through Caddy.
BASE_URL is used for notifications and identity-provider callbacks. It should match the public HTTPS address. Mealie's default forwarding-header trust assumes the application is reached through trusted proxies. Keep this deployment on a dedicated, trusted Docker host and restrict direct app access. Do not enable header-based reverse-proxy authentication unless you intentionally configure it. Review the backend settings.
Add recipes, a meal plan and household accounts
Start with a small collection: enter one family recipe, import one supported recipe URL and check the ingredients, quantities and method. Import results depend on the source page, so review them before relying on the saved recipe.
Organise the library
Choose a few useful tags and categories. Put repeat meals into a cookbook so they are easy to find on a phone.
Try the weekly workflow
Place recipes into the meal planner, build a shopping list and verify the quantities. The daily view helps with a shorter planning window.
Add people deliberately
Create or invite the accounts you need. Keep administrative and household-management permissions limited to trusted people.
Check group, household and recipe visibility separately. Groups and households begin private, but generated private Share links bypass the ordinary privacy checks. Treat those links as secrets. Test access in a signed-out browser before sharing anything widely. Read the permission model.
Recipe imports and integrations make outbound requests from the server. Keep registration closed and follow Mealie's security guidance before hosting for untrusted users or adding internal integrations. Review the deployment security considerations.
Back up the SQLite data and test recovery
Mealie's Backups page at /admin/backups can create and download application backups. Retain a copy away from the VPS. For this SQLite installation, the upstream recommendation is to stop Mealie and back up all of /app/data. A live copy of only the database file can miss related state.
From the deployment directory, the following example makes a timestamped copy. It briefly stops Mealie; the exit trap attempts to restart it even if the copy fails. Check the command's result and confirm the backup files exist.
(
set -eu
umask 077
backup_dir="$HOME/mealie-backups/$(date -u +%Y%m%dT%H%M%SZ)"
mkdir -p "$backup_dir"
trap 'docker compose start mealie >/dev/null' EXIT
docker compose stop mealie
docker compose cp mealie:/app/data "$backup_dir/data"
cp compose.yaml Caddyfile "$backup_dir/"
printf 'Backup directory: %s\n' "$backup_dir"
)
Compose's copy command copies from the container into the new host directory. Protect that directory and transfer it to a separate backup destination. Retain the application version and configuration alongside it, and schedule a backup job with a checked completion result and retention policy.
Test a restore into a separate instance on the recorded Mealie version. Verify account login, recipe images and planner data before changing the live service. The application's UI restore replaces existing database data, so use an isolated test instance. Follow the official restore guidance.
For an off-server destination, our encrypted Storage Box backup guide covers an SFTP-based workflow. VM backups provide another recovery layer; check the scope and schedule of each backup rather than assuming one replaces the other.
Update deliberately and check the result
Before an update, read the target release notes, retain a recovery copy and record the working image version. Change the Mealie tag in compose.yaml to the release you have reviewed, then update that service:
docker compose pull mealie
docker compose up -d mealie
docker compose ps
docker compose logs --tail=80 mealie
Check login, an existing recipe, an import, images and meal-planner data. Keep Caddy updated on its own reviewed schedule. Avoid a blind database downgrade if an upgrade has migrated stored data; use the tested recovery procedure for that application version. Read Mealie's update guidance.
Troubleshoot the common setup problems
| Symptom | Check first | Next action |
|---|---|---|
| SSH tunnel does not connect | SSH session and local port 19925 | Confirm the remote app is running on loopback port 9925 |
| Caddy does not start | Public profile and Mealie health | Inspect service logs; confirm the Caddyfile is a file |
| Certificate cannot be issued | A/AAAA records and TCP 80/443 | Correct DNS or firewall access, then inspect Caddy logs |
| Recipe import fails | Source URL and outbound connectivity | Try another supported page or enter the recipe manually |
| Container restarts or is unhealthy | Logs, disk space and memory use | Check data-volume access and available VPS resources |
Choose a VPS near the people using the library
HYEHOST Cloud VPS is available in Wolverhampton, Ashburn and Auckland. A small Linux VM gives you a separate environment for the recipe library, HTTPS endpoint and update process. Choose a region that suits your household, and allow storage for images and retained backups as well as the application itself.
Mealie VPS hosting FAQ
Can I host Mealie on a VPS?
Yes. This guide uses a Linux VPS with Docker Compose, a persistent local data volume and Caddy for HTTPS. A 2 GB RAM VM is a practical starting suggestion, rather than a measured minimum.
Does Mealie need PostgreSQL?
Not for this setup. Mealie recommends SQLite for smaller installations. Keep its database on local storage; consider PostgreSQL for heavier concurrent usage or features such as fuzzy search.
What is Mealie's default login?
The documented initial account is changeme@example.com with password MyPassword. Complete setup privately, replace those details and verify the new login before enabling public access.
Should I expose Mealie port 9000 directly?
This guide keeps the host mapping on 127.0.0.1:9925 and uses Caddy as the public HTTPS entry point. Do not change that mapping to a public wildcard address for this deployment.
Are my recipes private when registration is disabled?
Registration and recipe visibility are separate. Review group, household and recipe permissions. Generated private Share links bypass ordinary privacy checks, so treat them as secrets.
What should I back up for this Mealie installation?
Stop the SQLite-based Mealie container and copy all of /app/data, retaining the deployment configuration and application version too. Keep an off-server copy and test recovery separately.
Does this Mealie setup require an AI subscription?
No. The Docker and HTTPS setup here does not configure an AI provider. External AI and other integrations are optional choices with their own requirements.

