# How to Self-Host Mealie With Docker or One Click (2026)

> Mealie Docker setup, step by step: server size, the official Compose file, NGINX and SSL, the first login, the one-click way on xCloud, backups and upgrades.

The quickest **Mealie Docker** setup is one Compose file with one container: the official Mealie image, a data volume and a few settings. It runs well on a small Linux server with 1 GB of RAM. Add NGINX and an SSL certificate in front, change the default login, and your household has a private recipe app.

That covers the first evening. What decides whether it lasts is later: a backup you have actually restored, upgrades you choose on purpose, and a login nobody else can guess.

This guide covers both paths. First the **Docker Compose** way on any Ubuntu server, step by step, then the one-click way on xCloud, with what each one leaves on your plate. If containers are new to you, start with [**what Docker Compose is**](/what-is-docker-compose/).

![Who does each Mealie job: Docker Compose by hand vs one-click on xCloud](/_landing/blog/self-host-mealie-image-1.png)

## TL;DR

- **Mealie** is a free, open-source (AGPL-3.0) recipe manager: import a recipe from its URL, plan the week's meals, build shopping lists and share them with your household.
- **Requirements are small:** one container, a 1000 MB memory cap in Mealie's own example, and SQLite for 1 to 20 users. Mealie does not run on 32-bit ARM.
- **Docker path:** write a `docker-compose.yml` with a pinned version, set `TZ` and `BASE_URL`, run `docker compose up -d`, then put NGINX and HTTPS in front of the app.
- **Change the default login first.** Mealie starts with a known account (`changeme@example.com`), so replace it before you share the address.
- **One-click path:** pick **Mealie** in xCloud's One Click Apps, fill in an email, a password (or let xCloud make one) and a timezone. xCloud replaces the default account for you.
- **Either way, back up the whole data folder**, keep a copy off the server, and test a restore once.

## What the One-Click Install Actually Runs

Here is what xCloud's Mealie one-click app sets up (as of November 2026). It is close to Mealie's own example, with the parts you would otherwise add by hand already done:

| Part | What it does |
|---|---|
| **Mealie** | The official Mealie image, locked to one exact release, so a restart never jumps to a newer version. The card shows the version it installs |
| **Containers** | One. Mealie serves the web app and its API from the same container |
| **Database** | SQLite inside that container, Mealie's recommended setup for 1 to 20 users |
| **Your data** | One volume, `mealie_data`, holding the database, recipes, uploaded images and Mealie's own secrets |
| **Memory cap** | 1000 MB, the limit Mealie's own Compose example uses |
| **Web server** | NGINX with HTTPS for your domain. Mealie is only reachable through your domain, not by server IP and port |
| **Health check** | The template includes a health check, so Docker knows when Mealie stops answering |
| **First login** | Mealie's default account is replaced with the email and password you enter, before the install finishes |
| **Sign-up** | Public sign-up stays off. Only people you add can get in |
| **Install form** | **Administrator Email**, **Administrator Password** (leave it blank for a 24-character one) and **Timezone** (default UTC) |
| **Server check** | At least 1 GB of RAM, 1 CPU core and 5 GB of disk, on an NGINX server |

The row worth noticing is **First login**. On a manual install, Mealie starts with a known email and password, and the address is live from the first second. The template closes that gap before you ever open the page.

## What Mealie Is and When Self-Hosting It Makes Sense

**Mealie** turns a folder of recipe bookmarks into one library. Paste a recipe's URL and Mealie imports the recipe's details for you; type in family recipes with its editor. From there you plan the week, send the ingredients to a shopping list sorted by supermarket section, and group recipes into cookbooks.

It is built for a **household**: the people you cook with share the same recipes, plan and lists. It also has a REST API, so other tools at home can read your recipes.

Self-hosting makes sense when you want those recipes on a server you control, with no ads around them and no account with a recipe site. It is a light app, so it also fits on a server that already runs other household apps, like [**Home Assistant**](/self-host-home-assistant/) or [**Immich**](/self-host-immich/).

## What You Need to Self-Host Mealie

Mealie's needs are modest. These numbers come from Mealie's [**SQLite installation guide**](https://mealie.io/documentation/getting-started/installation/sqlite/) and xCloud's template:

| Item | What you need | Why |
|---|---|---|
| **Server** | 64-bit Linux, Ubuntu 22.04 or 24.04 works well | Mealie does not support 32-bit ARM |
| **RAM** | 1 GB is enough; cap the container at 1000 MB | Without a cap, Python can hold more memory than it needs while idle |
| **CPU** | 1 core | One person importing a recipe is light work |
| **Disk** | 5 GB to start, more for photos and kept backups | Recipe images and backup files add up |
| **Database** | SQLite for 1 to 20 users; PostgreSQL beyond that | PostgreSQL adds fuzzy search and suits many people at once |
| **Storage type** | Local disk, not network storage | Mealie warns SQLite on network storage can corrupt or lock |
| **Domain** | A subdomain such as `recipes.example.com` | For HTTPS and a clean address on your phone |
| **Port** | Container port 9000 | Everything else goes through your domain |

## Option 1: Self-Host Mealie With Docker Compose

These steps follow Mealie's documentation as of 23 November 2026. Here is how to do it on a fresh Ubuntu server you can reach over SSH.

### Step 1: Install Docker and point your domain

Install Docker Engine with the Compose plugin from Docker's own repository, not the old `docker-compose` package. Then create an **A record** for your subdomain that points to the server's IP, and open ports 80 and 443 in the firewall. If you are new to locking down a server, read our [**VPS security checklist**](/maximize-your-vps-security/) first.

### Step 2: Write the Compose file

Create a folder and a Compose file:

```bash
mkdir ~/mealie && cd ~/mealie
nano docker-compose.yml
```

Paste this file. It is Mealie's SQLite example with one change: the port is bound to `127.0.0.1`, so Mealie is only reachable through NGINX and your domain, not by server IP and port.

```yaml
services:
  mealie:
    image: ghcr.io/mealie-recipes/mealie:v3.31.0
    container_name: mealie
    restart: always
    ports:
      - "127.0.0.1:9925:9000"
    deploy:
      resources:
        limits:
          memory: 1000M
    volumes:
      - mealie-data:/app/data/
    environment:
      ALLOW_SIGNUP: "false"
      PUID: 1000
      PGID: 1000
      TZ: America/New_York
      BASE_URL: https://recipes.example.com

volumes:
  mealie-data:
```

Set the version to the latest release on [**Mealie's GitHub releases page**](https://github.com/mealie-recipes/mealie/releases) (v3.31.0 at the time of writing). Mealie advises a fixed version over `latest`, so an upgrade only happens when you choose it.

### Step 3: Set the values that matter

Four settings in that file decide how Mealie behaves:

| Setting | What it does | What to set |
|---|---|---|
| `TZ` | Timezone for meal plans and scheduled tasks | Your IANA name, such as `Europe/London` |
| `BASE_URL` | The address Mealie uses in links and notifications | Your full HTTPS address |
| `ALLOW_SIGNUP` | Lets anyone create an account without an invite | Keep `"false"` |
| `PUID` / `PGID` | The user that owns the files on the host | Your user's IDs (`id -u`, `id -g`) |

Email settings (`SMTP_HOST` and friends) are optional. Without them, invitations and password resets by email do not work, but everything else does.

### Step 4: Start Mealie

```bash
docker compose up -d
docker compose logs -f mealie
```

Wait until the log shows the app is up, then press **Ctrl+C**. A quick `curl -I http://127.0.0.1:9925` on the server should answer.

### Step 5: Put NGINX and SSL in front

Install NGINX and Certbot, then create a site file such as `/etc/nginx/sites-available/mealie`:

```nginx
server {
    listen 80;
    server_name recipes.example.com;
    client_max_body_size 50M;

    location / {
        proxy_pass http://127.0.0.1:9925;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}
```

Enable it and get a certificate:

```bash
sudo ln -s /etc/nginx/sites-available/mealie /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d recipes.example.com
```

The `client_max_body_size` line lets larger recipe photos and backup files upload. Certbot renews the certificate on its own timer.

### Step 6: Sign in and change the default account

Open your HTTPS address. Mealie's installation checklist lists the first login as `changeme@example.com` with the password `MyPassword`. Sign in, change the email in **Profile**, and set a strong password with **Change Password** straight away. Then open `/admin/site-settings` to check that Mealie sees your settings.

Import one recipe by URL and add it to a meal plan before you invite anyone. That one test shows the import, the database and the volume all work.

## Option 2: One-Click Mealie on xCloud

The one-click path gives you the stack from the first table without writing any of it. The general walkthrough is in 👉 [**How to Use One-Click App Templates in xCloud**](/docs/how-to-use-one-click-app-templates-in-xcloud/).

### Step 1: Pick an NGINX server

Click **New Server** and choose an xCloud managed server, or connect a server you already rent. Keep **NGINX** as the web server: Docker apps run on NGINX servers, and xCloud installs Docker with the first container app, as described in [**enabling Docker on an NGINX server**](/docs/enable-docker-on-an-nginx-server-in-xcloud/). Mealie needs 1 GB of RAM, 1 core and 5 GB of disk, so it fits beside other sites.

### Step 2: Choose Mealie in One Click Apps

Go to **Sites → New Site → One Click Apps**, search for **Mealie** and select it. The card shows the version it installs. Pick your server and click **Continue**.

### Step 3: Fill in three fields and go live

Enter the **Administrator Email**, an **Administrator Password** (or leave it blank for a generated one) and your **Timezone**, such as `America/New_York`. Choose **Demo Site** to try it on a temporary address, or **Go Live** with your own subdomain, then click **Next**. xCloud starts Mealie, replaces its default account with yours and sets up HTTPS.

### Step 4: Sign in and import your first recipe

Open the URL in the **Credentials** card on **Site Overview** and sign in with the email and password shown there. Save the password in a password manager. Then import a recipe by URL, put it on a meal plan and add one ingredient to a shopping list.

## After Install: Backups, Updates and Security

These three jobs decide whether Mealie still has your recipes in two years. They apply on either path.

![Where Mealie keeps your data and how a request reaches it](/_landing/blog/self-host-mealie-image-2.png)

### Backups

Everything lives in one place: the `/app/data` folder inside the container, which is the data volume. Mealie's [**backup guide**](https://mealie.io/documentation/getting-started/usage/backups-and-restoring/) says the best backup for SQLite is to stop the container and copy that folder. Mealie also makes its own zip backups under **Settings → Admin Settings → Backups**, which you can download.

On a manual install, script the stop, copy and start, and send the copy to another machine or cloud storage. Our list of [**website backup mistakes**](/website-backup-mistakes/) covers the usual traps, such as keeping the only copy on the same disk.

On xCloud, open the site and go to **Backup → Previous Backups** and click **Backup Now**, or schedule backups in **Backup → Backup Settings** (every 12 hours, daily, weekly or monthly) with remote copies. xCloud briefly stops the app, saves the `mealie_data` volume with the Compose and `.env` files, then starts it again. 👉 See [**how to back up and restore Docker apps**](/docs/backup-and-restore-docker-apps/).

### Updates

Read Mealie's release notes between your version and the new one before every upgrade, and take a backup first. Database changes in a new version may not undo themselves if you go back.

On a manual install, change the image tag in `docker-compose.yml`, then run `docker compose pull` and `docker compose up -d`. Never run `docker compose down -v`: the `-v` deletes your data volume.

On xCloud, when xCloud adds a newer Mealie version, **App Updates** in the site sidebar shows it. **Back up and update** takes a backup, moves the app, puts the old version back if the new one does not start, and lets you undo for 7 days. **Redeploy** in **App Actions** is different: it keeps the same version. 👉 See [**updating a One Click App**](/docs/update-a-one-click-app-and-edit-its-docker-compose-in-xcloud/).

### Security

Change or replace the default account before anyone else can find the address. Keep `ALLOW_SIGNUP` off and add family members from inside Mealie. Keep Mealie behind HTTPS only. On a manual install, keep the port limited to the server itself (127.0.0.1 in the Compose file), so Mealie is only reachable through your domain, not by server IP and port.

One more detail: the email and password in xCloud's install form only create the first account. To change them later, use **Profile** and **Change Password** inside Mealie; editing them in the **Environment** tab changes nothing.

## What the One-Click Install Does Not Do

Here is the honest list, read from the template:

- **No email out of the box.** SMTP is not set up, so email invitations and password recovery need settings you add in the **Environment** tab and apply with **Save & Redeploy**.
- **No single sign-on.** OIDC and LDAP are not configured.
- **No PostgreSQL.** The template uses SQLite, which suits a household, not a large shared install.
- **No automatic version jumps.** Mealie stays on its pinned release until you update from **App Updates**.
- **Disk is still yours to plan.** The 5 GB check is a floor; recipe photos and kept backups grow over time.

To undo the install, delete the site from xCloud. Take a backup or a Mealie export first if you want to keep your recipes.

## Docker Compose vs One-Click: Which to Choose

Mealie itself is free. What you pay for is where it runs and who looks after it.

| | Docker Compose by hand | One-click on xCloud |
|---|---|---|
| **Software cost** | Free (AGPL-3.0) | Free (AGPL-3.0) |
| **Server** | You rent and set it up | xCloud server or your own |
| **Setup** | Docker, Compose file, NGINX, Certbot, firewall | Three fields: email, password, timezone |
| **Default login** | Known account until you change it | Replaced before the install finishes |
| **Direct access by IP** | Possible on port 9925 unless you limit it to the server itself, as the file above does | Only reachable through your domain, not by server IP and port |
| **Backups** | Your own scripts, plus Mealie's zips | Scheduled Docker app backups with remote copies, plus Mealie's zips |
| **Upgrades** | Edit the tag, pull, restart | App Updates with a backup and 7-day undo |
| **Email, SSO, PostgreSQL** | Add what you need | Email by hand; SSO and PostgreSQL not in the template |

Choose Docker Compose if you want PostgreSQL, single sign-on, or Mealie on a home server. Choose one-click if you would rather spend the hour importing recipes than writing NGINX files. Your time is the hidden cost; our guide to [**self-managed vs managed hosting**](/self-managed-vs-managed-hosting/) goes deeper on that choice.

## Put Your Recipes on Your Own Server This Week

If you like owning every layer, the Compose steps above get Mealie running in an evening: pin the version, keep the port limited to the server itself, put HTTPS in front and change the default login before you share the link. Then restore one backup to prove it works.

If you would rather skip the plumbing, deploy Mealie from [**xCloud Mealie hosting**](/mealie-hosting/), compare server sizes on the [**pricing page**](/pricing/), or browse other apps in [**One Click Apps**](/one-click-apps/) and on [**Docker hosting**](/docker-hosting/). For more apps set up the same way, see our guides to [**self-hosting Nextcloud**](/self-host-nextcloud/) and [**free Docker hosting**](/best-free-docker-hosting/).

If you have found this blog helpful, feel free to [**subscribe to our blogs**](https://xcloud.host/blog/) for valuable tutorials, guides, knowledge, and tips on web hosting and server management. You can also join our [**Facebook community**](https://www.facebook.com/groups/xcloud.community) to share insights and engage in discussions.

## Frequently Asked Questions

### How much RAM does Mealie need in Docker?

Very little. Mealie's own Compose example caps the container at 1000 MB of memory, and xCloud's Mealie template asks for 1 GB of RAM, 1 CPU core and 5 GB of disk. Plan more disk than that if you import many recipes with photos.

### What is the default Mealie login?

Mealie's installation checklist lists changeme@example.com with the password MyPassword. Sign in and change both straight away. On xCloud you never see that account: the install replaces it with the administrator email and password from the form.

### Should I use SQLite or PostgreSQL for Mealie?

SQLite for most homes. Mealie calls it the ideal choice for 1 to 20 users. Pick PostgreSQL if you expect many people using it at once, want fuzzy search, or keep the data on network storage, where Mealie warns SQLite can corrupt.

### Does xCloud update Mealie for me?

Not on its own. The template pins one Mealie release. When xCloud adds a newer Mealie version, **App Updates** in the site sidebar shows it and moves you with one click, a backup first and a 7-day undo. You choose when.

### Can Mealie send email invitations on xCloud?

Not out of the box. The template does not set up email, so invitations and password recovery by email need SMTP settings you add yourself in the Environment tab. Until then, add household members from inside Mealie.
