Deploy Mealie
Mealie recipe manager: pinned v3.31.0, Postgres, volume, no default login
Just deployed
/app/data
Just deployed
/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
- 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:
- Copy
MEALIE_ADMIN_PASSWORDfrom the Mealie service's Variables tab. - Open the public URL and sign in with username
adminand that password. - 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
