Dockware is basically a managed docker setup for Shopware 6. It makes it possible to start Shopware 6 in just a couple of seconds using dockware.io. It already comes with everything you need for a smooth development workflow. This includes all available Shopware 6 versions, MySQL, Adminer, Mailcatcher, easy PHP switching, XDebug, useful make commands and way more.
Dockware is maintained by dasistweb GmbH. They provide a detailed documentation as well. This way, we'll cover just the basics here - For details please feel free to refer to the original dockware docs at any time.
Dockware images come in several version so you can choose the one which fits your needs best. You can find a brief overview below, but as always, please refer to their website for a detailed comparison.
First things first, please install Docker on your local maschine.
Afterwards, you are almost ready to start. You just need to use the following command on your host system to get it going:
# quick run with latest PHP and Shopware
$ docker run --rm -p 80:80 dockware/dev:latest
This command will install Dockware #dev version, which is based on
Productiontemplate. If you want to use
developmenttemplate, you need to use #contribute version. As soon as the docker image is downloaded and dockware is ready, you will see this text:
SUCCESS - Shopware is now ready!
SHOP URL: http://localhost
ADMIN URL: http://localhost/admin
ADMINER URL: http://localhost/adminer.php
MAILCATCHER URL: http://localhost/mailcatcher
You can start the dockware image with different shopware versions:
docker run --rm -p 80:80 --env PHP_VERSION=7.2 dockware/dev:latest
Create a new
docker-compose.ymlin the folder where you want to start your project and use our template below.
Dockware does already come with an installed Shopware 6. You can change the Shopware version along with the PHP version in your compose file.
# use either tag "latest" or any other version like "6.1.5", ...
# default = 0, recommended to be OFF for frontend devs
# default = latest PHP, optional = specific version
Open the folder with your compose file in your terminal and execute this command to start your container:
docker-compose up -d
Now download the current version of Shopware to your host into a "src" directory.
This is required to have code completion and IntelliSense right in your IDE.
mkdir -p ./src
docker cp shopware:/var/www/html/. ./src
Open the "src" folder with your preferred IDE and wait until finished loading. Then add a new SFTP connection to your container. (We recommend Automatic-Upload if possible)
That's it, you're done and ready to develop your own plugins and projects.
Would you like to explore alternative ways to install Shopware? You can install Shopware on Mac with the help of other tools: