Usage & Enterprise Capabilities
Thelia is the e-commerce solution for developers who value performance and deep customization. Built on top of the elite Symfony PHP framework components, it provides a robust, professional-grade foundation for building unique online shopping experiences. Unlike "all-in-one" platforms that can be bloated and restrictive, Thelia's modular architecture allows you to build exactly what your business needs without unnecessary overhead.
What makes Thelia stand out is its commitment to high-quality code and modern development patterns. It offers a powerful template system that gives designers and frontend developers absolute control over the look and feel of the store. Its native multi-site and multi-language capabilities make it an ideal choice for brands looking to expand into international markets with localized content and pricing.
Self-hosting Thelia provides organizations with a secure, high-performance commerce engine that is built to last, allowing for deep integration with existing professional back-office systems like ERPs and CRM platforms.
Key Benefits
Performance First: Built with advanced caching and optimized Symfony components.
Extreme Flexibility: A modular core that is easy for developers to extend.
Frontend Freedom: Total control over the user experience with power templating.
Enterprise Patterns: Professional-grade code following the best industry standards.
Strong Community: Supported by a dedicated ecosystem of European e-commerce experts.
Production Architecture Overview
A production Thelia environment typically consists of:
PHP-FPM: Running the Thelia application core (PHP 7.4+ / 8.x).
MySQL / MariaDB: The primary relational database (v5.6+).
Redis: Used for caching and session management in high-traffic setups.
Nginx: The standard web server and reverse proxy.
Storage: Local or cloud storage for product media and uploads.
Implementation Blueprint
Implementation Blueprint
Prerequisites
sudo apt update && sudo apt upgrade -y
sudo apt install docker.io docker-compose -y
sudo systemctl enable docker
sudo systemctl start dockerDocker Compose Production Setup
This configuration runs Thelia with its core services and a MySQL database.
version: '3'
services:
thelia:
image: thelia/thelia:latest
ports:
- "80:80"
environment:
- THELIA_ENV=prod
- THELIA_DATABASE_URL=mysql://root:password@db/thelia
depends_on:
- db
volumes:
- thelia_data:/var/www/html/web/uploads
restart: always
db:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=thelia
volumes:
- db_data:/var/lib/mysql
restart: always
volumes:
thelia_data:
db_data:Kubernetes Production Deployment (Recommended)
Thelia is highly scalable on Kubernetes using standard PHP-FPM and Nginx patterns.
# Deploy app and db as separate components
kubectl create deployment thelia-app --image=thelia/thelia:latest
kubectl expose deployment thelia-app --port=80Benefits:
Horizontal Scaling: Scale your PHP backend pods to handle traffic peaks effortlessly.
Standardized Deployment: Use rolling updates for safe releases of new store features.
Persistent Data: Use PersistentVolumeClaims to manage your media and uploads reliably.
Scaling Strategy
Advanced Caching: Leverage Thelia's native cache management along with Redis for high-speed response times.
Database Tuning: Regularly optimize your MySQL instance with proper indexing and query monitoring.
Media Optimization: Use a CDN to serve all product images and frontend assets globally.
Load Balancing: Distribute traffic across multiple web pods to ensure high availability during sales.
Backup & Safety
Database Dumps: Automate daily MySQL backups and store them offsite securely.
Storage Snapshots: Regularly snapshot the persistent volumes containing your
/uploadsdirectory.Security Audit: Regularly update your Thelia installation and modules to stay protected.
HTTPS Enforcement: Always use SSL/TLS to protect customer data and improve site trust.