If you’re looking to set up Shopware for development or testing purposes, Docker is an excellent option. This step-by-step guide will walk you through installing Shopware using Docker and Docker Compose.

Step 1: Docker Installation

Installation on Mac

Installation on Windows


Step 2: Set Up Your Environment

Create a Project Directory

mkdir shopware
cd shopware

Create Docker Compose File

Save the following content into a docker-compose.yml file in the project directory:

services:

  shopware:
    image: dockware/dev:latest
    container_name: shopware
    ports:
      - "80:80"
      - "3306:3306"
      - "22:22"
      - "8888:8888"
      - "9999:9999"
      - "9998:9998"
    volumes:
      - "./src/custom/plugins:/var/www/html/custom/plugins"
      - "db_volume:/var/lib/mysql/shopware"
      - "shop_volume:/var/www/html/shopware"
    networks:
      - web
    environment:
      - XDEBUG_ENABLED=1
      - PHP_VERSION=8.3

volumes:
  db_volume:
    driver: local
  shop_volume:
    driver: local

networks:
  web:
    external: false

Step 3: Build and Run the Containers

Start the Docker Containers: In the root directory containing your docker-compose.yml file, run:

docker-compose up -d

Verify the Containers: Check if the containers are running:

docker ps

Access the Shopware Application: Open your browser and navigate to http://localhost. You should see the Shopware setup screen.


Shopware 6 Credentials

Admin credentials

Login to the admin panel via the path: http://localhost/admin.

  • User: admin
  • Password: shopware

MySQL credentials

Database Access:

  • User: root
  • Password: root
  • Host: 127.0.0.1 (not localhost)
  • Port: 3306

SSH/SFTP credentials

File Access:

  • User: dockware
  • Password: dockware
  • Port: 22

Mailcatcher credentials

Mailcatcher Access:

  • Host: localhost
  • Port: 1025