selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Bagisto logo

Self-host Bagisto

v2.5.1

Laravel commerce platform for online stores and marketplaces

ReleaseOpen SourceMIT
docker run -d --name bagisto -p 80:80 webkul/bagisto:latest
Updated4 days ago
LanguagePHP
Setup difficultyModerate
MobilePWA
Stars
28 355
Port
80 (Storefront and admin panel over HTTP inside the production container (host mapping is -p 80:80))
Docker
webkul/bagisto
Bagisto screenshot 1Bagisto screenshot 2Bagisto screenshot 3Bagisto screenshot 4Bagisto screenshot 5

What is Bagisto?

Bagisto is an open-source commerce framework written in PHP on Laravel with a Vue.js admin, maintained by Webkul and released under the MIT licence. It gives you a storefront plus an admin panel with catalog and custom product attributes, multi-warehouse stock, built-in CMS pages and banners, product SEO fields, discounts and coupons, and role-based permissions for admin users. The same codebase is used for multi-vendor marketplaces, B2B stores with company accounts and quote negotiation, and multi-tenant SaaS commerce, and it can drive headless front ends through its REST and GraphQL APIs; Elasticsearch, Varnish, full page cache and Laravel Octane are documented performance options. Self-hosting is straightforward: pull webkul/bagisto, an image that bundles Nginx, Apache or OpenLiteSpeed with MySQL, MariaDB or PostgreSQL already migrated and seeded, or install with composer create-project plus php artisan bagisto:install and serve the public directory. It needs PHP 8.4 and Composer 2, and Redis, Elasticsearch and S3/R2 media storage are optional extras. The container only speaks plain HTTP on port 80, so SSL is terminated at a reverse proxy in front of it, and the appliance image is around 2 GB. The core is free; paid extensions, themes and managed Bagisto Cloud Hosting are Webkul's business model, and the project also collects donations on Open Collective.

Bagisto alternatives

Should you self-host Bagisto?

Bagisto scores 76/100 on selfhost.directory (how scoring works) and ranks #2 of 27 in E-commerce. It has 28 355 GitHub stars, +142 in the last 30 days.

It shipped 20 stable releases in the past year. The latest, v2.5.1, came out on 6 November 2026. New versions land roughly every 2 weeks.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is MIT-licensed and written mostly in PHP.

Its closest alternative on selfhost.directory is MedusaJs (83/100, 37 168 stars). It scores higher overall, so compare the two before you pick. See Bagisto vs MedusaJs side by side.

Features

  • B2B commerceDelivered as the Bagisto B2B eCommerce platform layered on a store.
  • Built-in CMS
  • Discounts & coupons
  • Full page caching
  • GraphQL APISame bagisto/bagisto-api package as the REST surface.
  • Headless Commerce
  • Multi-currency Support
  • Multi-locale support
  • Multi-tenancy
  • Multi-vendor Marketplace
  • Multi-warehouse Inventory
  • Product SEO
  • REST APIShipped as the separate bagisto/bagisto-api Composer package, not in the core repository.
  • Role-based Access Control

Bagisto README

How to install Bagisto

Install Bagisto with Docker

Environment variables
APP_URL, APP_KEY, APP_LOCALE, APP_CURRENCY, APP_TIMEZONE, APP_ADMIN_URL, DB_CONNECTION, DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, DB_PASSWORD
docker run -d --name bagisto -p 80:80 webkul/bagisto:latest

Open http://localhost — your store is live.

Single-container appliance: Nginx, Apache or OpenLiteSpeed plus MySQL 8.0, MariaDB 10.11 or PostgreSQL 16, already migrated and seeded at build time. Set DB_HOST to an external server to skip the bundled database; volumes for /var/lib/mysql (or /var/lib/postgresql) and /var/www/bagisto/storage are opt-in. Serves plain HTTP only, so terminate SSL on a reverse proxy.

How to configure Bagisto

  • APP_NAMEBagisto
  • APP_ENVlocal
  • APP_KEY
  • APP_DEBUGtrue
  • APP_URLhttp://localhost

Bagisto releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

Is Elasticsearch included in the Docker image?

No, Bagisto runs without it and falls back to database search; if you need it, run Elasticsearch separately and point Bagisto at it.

Why is the Bagisto Docker image around 2 GB?

It is an appliance image that bundles a fully installed, migrated and seeded Bagisto app together with the database server, PHP, Nginx and their runtime dependencies.

Is HTTPS supported directly in the production Docker container?

No, the container serves plain HTTP on port 80; a reverse proxy such as Nginx, Traefik or Caddy should terminate SSL in front of it.

Can I sell on other platforms with Bagisto?

Yes, multichannel selling connects the store to marketplaces, apps and social media.

What payment options can I connect with Bagisto?

Trusted partners such as PayPal and Paymob can be added, along with many other local and global payment gateways.

How can Generative AI help in my store?

Generative AI can draft product descriptions and content ideas quickly, saving time.

Can I improve my store's SEO with Bagisto?

Yes, SEO tooling covers meta titles, descriptions, keywords and search-engine-friendly URLs.

Does Bagisto support multiple languages and currencies?

Yes, multi-locale and multi-currency support is built in, which suits selling internationally.

Do I need coding skills to use Bagisto?

Most store setup and management needs no code; custom features can be handled by developers or added through extensions.

Can I build a marketplace with Bagisto?

Yes, using the Multivendor Marketplace capability, multiple sellers can manage their own products on your store.

What makes Bagisto different from other eCommerce platforms?

It is open source, fully customisable, and ships with capabilities such as multivendor support, product SEO and PWA.

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…