Deploy Mealie

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

Deploy Mealie

/app/data

/var/lib/postgresql/data

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

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.


Template Content

More templates in this category

View Template
Rocky Linux
Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
51
View Template
Foundry Virtual Tabletop
Self-hosted virtual tabletop for role-playing games (license required)

Lucas
71
View Template
NEW
Double Commander in your browser
The Double Commander file manager in the cloud, from any device

Nermin Sabanovic
0