Deploy Krayin CRM

Open-source Laravel CRM for leads, pipelines and quotes. v2.2.8 + MySQL

Deploy Krayin CRM

Just deployed

/var/www/html/storage

MySQL

mysql:8

Just deployed

/var/lib/mysql

Deploy and Host Krayin CRM on Railway

Krayin CRM is a free, open-source CRM built on Laravel and Vue.js and released under the MIT licence. It manages leads in drag-and-drop sales pipelines, along with contacts, organizations, activities, quotes, products and email. It also includes web forms, workflow automation, marketing campaigns, data imports, roles and a REST API.

About Hosting Krayin CRM

Krayin is a PHP 8.3 application that needs MySQL 8 and a writable storage/ folder. This template builds Krayin v2.2.8 from a public GitHub repo, on the official PHP Apache image pinned by version and digest. It comes with Railway's MySQL. storage/ (uploads, imports, sessions) and the database each have their own volume, so data survives redeploys. On the first start the container creates the tables, seeds Krayin's base data and creates your admin from ADMIN_EMAIL and a generated password before the web server opens. Later starts only run new migrations. A queue worker and the scheduler run in the same container.

Common Use Cases

  • Track leads through custom sales pipelines and stages, with values and expected close dates
  • Keep contacts, organizations, calls, meetings, notes and emails in one shared CRM for a team
  • Send quotes from a product catalog, capture leads with web forms, and import existing data from CSV

Dependencies for Krayin CRM Hosting

  • MySQL 8 (included: Railway's MySQL service)
  • A volume for Krayin's storage/ folder (included)

Deployment Dependencies

Implementation Details

After deploy: open the Krayin CRM service's Variables tab and copy ADMIN_PASSWORD. Then sign in at https://YOUR-DOMAIN/admin/login with ADMIN_EMAIL and that password, and change the password under Settings > Users. There is no default admin@example.com / admin123 account, and the web installer is closed.

Defaults: APP_KEY and the admin password are generated for each deploy. Never change APP_KEY after deploy, or encrypted data becomes unreadable. Mail goes to the deploy log until you add SMTP variables (MAIL_MAILER=smtp, MAIL_HOST, MAIL_PORT, MAIL_USERNAME, MAIL_PASSWORD, MAIL_FROM_ADDRESS). If you add a custom domain, set APP_URL to it. Timezone, locale and currency default to UTC, en and USD, and you can override them with APP_TIMEZONE, APP_LOCALE and APP_CURRENCY.

Updates: each new Krayin release becomes a commit to the template repo with a changelog entry. Railway then shows an "update available" notice in your project, and you choose when to apply it. Back up the MySQL volume first, because migrations only go forward.

Why Deploy Krayin CRM 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 Krayin CRM 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

MySQL

mysql:8

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