Deploy Bagisto
Laravel e-commerce store: Bagisto 2.5.1, MySQL, secure admin set at install
Just deployed
/var/www/bagisto/storage
MySQL
Just deployed
/var/lib/mysql
Deploy and Host Bagisto on Railway
Bagisto is an open-source e-commerce platform built on Laravel and Vue.js, released under the MIT licence. It gives you a storefront, a checkout, and an admin panel for products, categories, orders, customers, promotions, taxes, shipping and CMS pages, with multi-channel, multi-locale and multi-currency support.
About Hosting Bagisto
This template runs Bagisto 2.5.1 from the official webkul/bagisto image, pinned by version and digest. It builds from our GitHub repo and runs next to Railway's MySQL. On the first start, Bagisto installs itself into the empty database. The admin login is then set from the email you enter and a generated password, before the site goes public, so the stock admin123 login never exists. Product images and uploads live on a volume, and everything else lives in MySQL, so both survive a redeploy. nginx, PHP-FPM, the queue worker and the scheduler all run in one service. The health check is /up.
Common Use Cases
- Run your own online store with no platform fees or per-order commission
- Sell to several countries from one admin, with separate channels, locales and currencies
- Build a custom shop or marketplace on Laravel, starting from a working install
Dependencies for Bagisto Hosting
- MySQL (Railway's MySQL service, included)
- A volume for
storage/(product images, uploads, logs, included)
Deployment Dependencies
- Bagisto on GitHub and its v2.5.1 release
- Bagisto installation docs
- Template repo: aalfath/bagisto-railway-template
Implementation Details
The deploy asks for one value: BAGISTO_ADMIN_EMAIL. The first deploy takes a few minutes while the installer runs.
After the deploy:
- Open the Bagisto service's Variables tab and copy
BAGISTO_ADMIN_PASSWORD. - Sign in at
https://YOUR-DOMAIN/admin. Change the password under My Account if you like: the variable is only read on the first install. - Set up mail (SMTP) under Configuration → Email, and your store's name, currency and locales under Settings → Channels.
To load Bagisto's demo catalogue, set BAGISTO_SAMPLE_DATA=true before the first deploy. If you add a custom domain, set APP_URL to https://YOUR-DOMAIN.
Updates: the service builds from the template repo. When we bump the pinned Bagisto version, Railway shows an "update available" notice on your project, and you choose when to apply it. Read the repo's CHANGELOG.md first. Database migrations run on the next start.
Why Deploy Bagisto 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 Bagisto 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
BAGISTO_ADMIN_EMAIL
Email for your admin login at /admin. Only read on the first install.
MySQL
mysql:8