Deploy Bagisto

Laravel e-commerce store: Bagisto 2.5.1, MySQL, secure admin set at install

Deploy Bagisto

/var/www/bagisto/storage

MySQL

mysql:8

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

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:

  1. Open the Bagisto service's Variables tab and copy BAGISTO_ADMIN_PASSWORD.
  2. 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.
  3. 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

MySQL

mysql:8

More templates in this category

View Template
Libredesk - Complete Setup
Complete self-hosted omnichannel customer support desk.

codestorm
2
View Template
Paperless-ngx
Paperless-ngx — document management with OCR and full-text search

INAPP
1
View Template
Instatic CMS - Postgres
Design, build and manage powerful static sites from state-of-the-art CMS

Instatic
169