---
title: "Deploy Bagisto"
description: "Laravel e-commerce store: Bagisto 2.5.1, MySQL, secure admin set at install"
category: "CMS"
url: https://railway.com/deploy/bagisto-1
---

# Deploy Bagisto

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

**[Deploy Bagisto on Railway](https://railway.com/template/bagisto-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/bagisto-1/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** CMS

## Template content

### Bagisto https://raw.githubusercontent.com/aalfath/bagisto-railway-template/b5d0b56681b6f7f7a665b3622fe033b5aa39b79c/icon.png

- **Source:** https://github.com/aalfath/bagisto-railway-template
- **Health check:** /up
- **Public domain:** Yes

### MySQL https://devicons.railway.app/i/mysql.svg

- **Image:** mysql:8
- **Start command:** `docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=1G`

## Documentation

# 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](https://github.com/bagisto/bagisto) and its [v2.5.1 release](https://github.com/bagisto/bagisto/releases/tag/v2.5.1)
* [Bagisto installation docs](https://devdocs.bagisto.com/getting-started/installation.html)
* [Template repo: aalfath/bagisto-railway-template](https://github.com/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:

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.



## Similar templates

- [Libredesk - Complete Setup](https://railway.com/deploy/libredesk-complete-setup) — Complete self-hosted omnichannel customer support desk.
- [Paperless-ngx](https://railway.com/deploy/paperless-ngx-3) — Paperless-ngx — document management with OCR and full-text search
- [Instatic CMS - Postgres](https://railway.com/deploy/instatic-cms-postgres) — Design, build and manage powerful static sites from state-of-the-art CMS

Open this page in a browser: https://railway.com/deploy/bagisto-1
