How it helps your business
Key Benefits
- Unrivaled Flexibility: Change any part of the platform without breaking the core logic.
- Developer Happiness: Built with modern PHP best practices and full testing support.
- Headless Ready: Robust REST and GraphQL APIs for the modern frontend stack.
- Enterprise Grade: Scalable, secure, and ready for high-traffic environments.
- Rich Ecosystem: Hundreds of community-contributed plugins for payments, shipping, and more.
Production Architecture Overview
- PHP-FPM: Running the Sylius application core.
- PostgreSQL / MySQL: The primary relational database for orders and products.
- Redis: Used for caching and session storage in distributed setups.
- Elasticsearch: (Optional but recommended) for high-speed faceted search.
- Nginx: The web server and reverse proxy.
- S3 / MinIO: For persistent storage of product images and assets.
How we deploy this for you
Security Hardened
Firewalls, SSL, and hardened kernels out of the box.
Performance Tuned
Optimized for speed with cache and DB fine-tuning.
Automated Backups
Daily off-site backups so you never lose your data.
Private Cloud
You own the server and the data. No middleman.
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
version: '3'
services:
php:
image: sylius/sylius-php:latest
environment:
- APP_ENV=prod
- DATABASE_URL=mysql://sylius:password@db/sylius
volumes:
- sylius_public:/srv/sylius/public
restart: always
nginx:
image: sylius/sylius-nginx:latest
ports:
- "80:80"
depends_on:
- php
volumes:
- sylius_public:/srv/sylius/public
restart: always
db:
image: mysql:8
environment:
- MYSQL_USER=sylius
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=sylius
volumes:
- db_data:/var/lib/mysql
restart: always
volumes:
sylius_public:
db_data:Kubernetes Production Deployment (Recommended)
# Deploy PHP-FPM and Nginx sidecars or as separate services
kubectl create deployment sylius --image=your-custom-sylius-image:latest
kubectl expose deployment sylius --port=80- Zero-Downtime Updates: Use rolling deployments for safe updates and security patches.
- Elastic Scaling: Scale your PHP-FPM workers automatically based on traffic peaks.
- Persistent Storage: Use PVCs to manage your
public/mediafolder across multiple pods.
Scaling Strategy
- Faceted Search: Offload complex product searches to a dedicated Elasticsearch or Algolia instance.
- Database Optimization: Use read-replicas for catalog browsing and ensure heavy indexes are optimized.
- Object Storage: Always move your
/mediafolder to S3 or a compatible provider in production. - Session Clustering: Use Redis for sessions to ensure users stay logged in as they move between web pods.
Backup & Safety
- SQL Backups: Automate nightly database dumps and store them securely offsite.
- Media Backups: Ensure your S3 bucket has versioning and cross-region replication.
- Monitoring: Use a tool like New Relic or Sentry to track performance bottlenecks and errors.
- HTTPS Everywhere: Force SSL/TLS for all traffic via your Nginx or ingress controller.
Includes Security & performance standards
Best place to host Sylius
We recommend Hostinger for its reliability and low cost. It's the perfect home for your new apps, featuring easy setup and 24/7 support.
Get Started on HostingerCompare Similar Tools
Kubernetes
Kubernetes is a production-grade, open-source platform for automating deployment, scaling, and operations of application containers.
Supabase
Supabase is the leading open-source alternative to Firebase. It provides a full backend-as-a-service (BaaS) powered by PostgreSQL, including authentication, real-time subscriptions, and storage.