---
title: "Deploy Mealie"
description: "Mealie recipe manager: pinned v3.31.0, Postgres, volume, no default login"
category: "Other"
url: https://railway.com/deploy/mealie-2
---

# Deploy Mealie

Mealie recipe manager: pinned v3.31.0, Postgres, volume, no default login

**[Deploy Mealie on Railway](https://railway.com/template/mealie-2)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/mealie-2/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** Other

## Template content

### Mealie https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/mealie.png

- **Source:** https://github.com/aalfath/mealie-recipes-railway-template
- **Health check:** /api/app/about
- **Public domain:** Yes

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:17

## Documentation

# Deploy and Host Mealie on Railway

Mealie is an open-source, self-hosted recipe manager and meal planner. You import recipes from any website by URL or type in your own, then plan meals, build shopping lists and share a cookbook with your household. It has a REST API and a responsive web app that works on phones.

## About Hosting Mealie

This template runs Mealie v3.31.0 from the official image, pinned by version and digest, with Railway's PostgreSQL 17. Recipe images, backups and Mealie's own secret keys sit on a volume at `/app/data`, and the recipes are in Postgres, so both survive restarts and redeploys. Mealie normally starts with a well-known first login (`changeme@example.com` / `MyPassword`). This template replaces it before the server starts: you sign in as `admin` with the generated `MEALIE_ADMIN_PASSWORD` from the Mealie service's Variables tab. Sign-up stays closed until you invite people or turn it on. Migrations run automatically on every start.

## Common Use Cases

* Keep a family cookbook, importing recipes from cooking websites by URL
* Plan the week's meals and turn them into a shared shopping list
* Share recipes and meal plans with your household, with separate user accounts

## Dependencies for Mealie Hosting

* PostgreSQL (Railway's Postgres 17, included)
* A volume for recipe images, backups and secret keys (included)

### Deployment Dependencies

* Mealie on GitHub: https://github.com/mealie-recipes/mealie
* Mealie v3.31.0 release: https://github.com/mealie-recipes/mealie/releases/tag/v3.31.0
* Backend configuration: https://docs.mealie.io/documentation/getting-started/installation/backend-config/
* Template source: https://github.com/aalfath/mealie-recipes-railway-template

### Implementation Details

After deploy:

1. Copy `MEALIE_ADMIN_PASSWORD` from the Mealie service's Variables tab.
2. Open the public URL and sign in with username `admin` and that password.
3. Change the admin's name, email and password under your profile. The template never overwrites them.

Optional features are extra variables on the Mealie service: email (`SMTP_HOST`, `SMTP_PORT`, `SMTP_USER`, `SMTP_PASSWORD`, `SMTP_FROM_EMAIL`), OpenID Connect (`OIDC_*`), LDAP (`LDAP_*`), AI features (`OPENAI_API_KEY`) and open sign-up (`ALLOW_SIGNUP=true`). If you add a custom domain, set `BASE_URL` to it.

Updates: the Mealie service builds from the template's GitHub repository. When a new Mealie release is pinned there, Railway shows an "update available" notice on your project, and you choose when to apply it. Read the repository's CHANGELOG.md first, and take a backup from Mealie's admin page before a major version update.

## Why Deploy Mealie on Railway?


Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Mealie on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.



## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Double Commander in your browser](https://railway.com/deploy/double-commander-in-your-browser) — The Double Commander file manager in the cloud, from any device

Open this page in a browser: https://railway.com/deploy/mealie-2
