SyliusCon 2025
Early Bird Deal
LogoLogo
🛣️ Roadmap💻 Sylius Demo💬 Community Slack
  • Sylius Documentation
  • Sylius Plugins
  • Sylius Stack
  • 📖Sylius 2.0 Documentation
    • Organization
      • Release Cycle
      • Backwards Compatibility Promise
      • Sylius Team
      • Sylius Roadmap
  • Getting Started with Sylius
    • Installation
    • Basic Configuration
    • Shipping & Payment
    • First Product
    • Customizing the Shop
    • Customizing Business Logic
    • Using API
    • Installing Plugins
    • Deployment
    • Summary
  • The Book
    • Introduction to Sylius
    • Installation
      • System Requirements
      • Sylius CE Installation
        • Sylius CE Installation with Docker
      • ➕Sylius Plus Installation
      • Upgrading Sylius CE
      • Upgrading Sylius Plus
    • Architecture
      • Architecture Overview
      • Architectural Drivers
      • Resource Layer
      • State Machine
      • Translations
      • E-Mails
      • Contact
      • Fixtures
      • Events
    • Configuration
      • Channels
      • Locales
      • Currencies
    • Customers
      • Customer & ShopUser
      • ➕Customer Pools
      • AdminUser
      • Addresses
        • Countries
        • Zones
        • Addresses
        • Address Book
    • Products
      • Products
      • Product Reviews
      • Product Associations
      • Attributes
      • Pricing
      • Catalog Promotions
      • Taxons
      • Inventory
      • ➕Multi-Source Inventory
      • Search
    • Carts & Orders
      • Orders
      • Cart flow
      • Taxation
      • Adjustments
      • Cart Promotions
      • Coupons
      • Payments
      • 🧩Invoices
      • Shipments
    • Support
    • Contributing
      • Contributing Code
        • Submitting a Patch
        • ⚠️Security Issues
        • Coding Standards
        • Conventions
        • Sylius License and Trademark
      • Contributing Translations
      • Key Contributors
  • The Customization Guide
    • Customizing Models
      • How to add a custom model?
      • How to add a custom translatable model?
    • Customizing Forms
      • How to add a live form for a custom model?
    • Customizing Styles
    • Customizing Validation
    • Customizing Menus
    • Customizing Templates
    • Customizing Translations
    • Customizing Flashes
    • Customizing State Machines
    • Customizing Grids
    • Customizing Fixtures
    • Customizing API
    • Customizing Serialization of API
    • Customizing Payments
      • How to integrate a Payment Gateway as a Plugin?
  • 🧑‍🍳The Cookbook
  • How to resize images?
  • How to add one image to an entity?
  • How to add multiple images to an entity?
  • Sylius 1.X Documentation
    • 📓Sylius 1.x Documentation
Powered by GitBook
LogoLogo

Developer

  • Community
  • Online Course

About

  • Team

© 2025 Sylius. All Rights Reserved

On this page
  • Docker
  • Project Setup
  • Development
  • Troubleshooting
  • Other docker dedicated make commands

Was this helpful?

Edit on GitHub
  1. The Book
  2. Installation
  3. Sylius CE Installation

Sylius CE Installation with Docker

PreviousSylius CE InstallationNextSylius Plus Installation

Last updated 1 day ago

Was this helpful?

Docker

Docker is an open-source platform for developing, delivering, and running applications. It allows you to separate your application from your infrastructure, simplifying software delivery. With Docker, you can manage infrastructure the same way you manage applications. This platform methodology enables fast code delivery, testing, and implementation, significantly reducing the delay between writing code and running it in the production environment.

Make sure you have and installed on your local machine.


Project Setup

Clone the Sylius-Standard repository, or if you are using GitHub, you can use the 'Use this template' button to create a new repository with Sylius-Standard content.

git clone [email protected]:Sylius/Sylius-Standard.git your_project_name

Development

comes with the configuration. You can start the development environment via the make init command in your favourite terminal. Please note that the speed of building images and initialising containers depends on your local machine and internet connection - it may take some time. Then enter localhost in your browser or execute open http://localhost/ in your terminal.

make init
open http://localhost/

Troubleshooting

If you encounter errors while running make init, such as services failing to start or exiting unexpectedly, it might be caused by port conflicts with services already running on your host system.

Service
Default Host Port
Docker Config Line

NGINX

80

- "80:80"

MySQL

3306

- "3306:3306"

Mailhog

8025

- "8025:8025"

If a process is already using the port, you have two options:

  1. Stop the conflicting service (e.g. shut down local Apache or MySQL).

To check services that are using current ports just run the command:

lsof -i :80
lsof -i :3306
  1. Change the default port mappings in compose.override.yml:

# examples

nginx:
  ports:
    - "8080:80"

mysql:
  ports:
    - "3307:3306"

Remember that if you change your nginx port you will need to correct also the address:

open http://localhost:8080 # for the example above

Other docker dedicated make commands

Besides the initial make init command, the Makefile includes several other useful shortcuts for managing your Docker environment:

Command
Description

make run

Starts the Docker containers (alias for make up).

make debug

Starts containers using compose.debug.yml, allowing you to add custom debug tooling or configuration.

make up

Starts all containers in the background using the default Docker configuration.

make down

Stops and removes all containers.

make clean

Stops containers and removes all volumes. This resets your environment.

make install

Runs the Sylius installer in non-interactive mode.

make php-shell

Opens a shell in the PHP container. Useful for running CLI commands like bin/console.

make node-shell

Opens a shell in a fresh Node.js container. Good for running JS-related tools like npm install.

make node-watch

Runs npm run watch inside the Node.js container for automatic frontend asset rebuilding.

make docker-compose-check

Verifies that Docker Compose is available and prints the current version.

Docker
make
Sylius Standard
docker compose