Skip to content
Simple Docker setup for pimcore
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea add needed docker files Feb 25, 2019
docker revert gd deletion Aug 29, 2019
.gitignore add needed docker files Feb 25, 2019
LICENSE Initial commit Feb 25, 2019 revert backslashes in curl command Sep 2, 2019
docker-compose.yml small optimization Mar 28, 2019


Simple Docker setup for pimcore local development. This will install Pimcore 6.1.0 (as of August 19).

You can also read a short summary here Blog Post - Pimcore Docker Setup

Run Docker

  • Go to root directory
  • run docker-compose build
  • run docker-compose up -d

Install Pimcore within container

After starting the container some additional manual steps are needed.

Go into the PHP container with

  • run docker-compose exec php bash

Install pimcore (see

  • run COMPOSER_MEMORY_LIMIT=-1 composer create-project pimcore/demo-basic-twig pimcore

The pimcore project structure will be created in the directory pimcore

Change owner for calling next commands.

  • run chown -R 1000:1000 pimcore

The next command creates pimcore with an initial admin user and our defined database properties.

  • run cd pimcore && COMPOSER_MEMORY_LIMIT=-1 ./vendor/bin/pimcore-install --admin-username=admin --admin-password=admin --mysql-host-socket=mysql --mysql-username=pimcore --mysql-password=pimcore --mysql-database=pimcore --no-interaction

  • run chown -R 1000:1000 var

  • run php bin/console assets:install web

Generate Thumbnails

Pimcore offers a lot of custom commmands. For generating thumbnails run php bin/console pimcore:thumbnails:image in you php container.

To preview images in admin panel, make sure you have the right permissions. As a workaround set chmod -R 777 web/var

Access Pimcore

You can now access pimcore frontend at http://localhost:8080 and admin at http://localhost:8080/admin


If you're getting the following error with Pimcore 6

* Warning: Declaration of Pimcore\Bundle\CoreBundle\EventListener\LegacyTemplateListener::onKernelView(Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent $event) should be compatible with Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelView(Symfony\Component\HttpKernel\Event\KernelEvent $event)

You can fix it with changing the pimcore/composer.json file and require and older version of sensio/framework-extra-bundle

The require part should look like this:

"require": {
    "php": ">=7.2",
    "wikimedia/composer-merge-plugin": "^1.4",
    "pimcore/pimcore": "~6.0.0",
    "sensio/framework-extra-bundle": "5.3.1"

Then run composer update and the pimcore-install script again.

You can’t perform that action at this time.