Home > database >  What does everyone use for local Shopware development specifically when developing full sites?
What does everyone use for local Shopware development specifically when developing full sites?

Time:07-11

I've found different ways to setup a local development environment for Shopware 6 but have so far only tried Dockware. The dev image has some tools which I find amazing like watch-admin and watch-storefront, but it should be used for plugin development and not full site. What is the "best" local Shopware 6 dev environment setup?

Could you include your docker-compose.yml when you use one?

CodePudding user response:

My vote goes to: ddev. Out of the box support of SW5/6, very good support (through discord or here on SO), good docs and very high customization.
I've been using it for months now on Windows 10 WSL and it's been an absolute breeze to work with!

CodePudding user response:

Couldn't agree more with https://stackoverflow.com/users/3329355/jim. Using ddev on Ubuntu for Shopware 5 and 6.

This is my ddev/config.yaml for a simple Shopware 6 project:

name: my-project
type: shopware6
docroot: public
php_version: "8.0"
webserver_type: apache-fpm
router_http_port: "80"
router_https_port: "443"
xdebug_enabled: false
additional_hostnames: []
additional_fqdns: []
mariadb_version: ""
mysql_version: "8.0"
use_dns_when_possible: true
composer_version: ""
web_environment:
 - APP_URL=http://${DDEV_SITENAME}.ddev.site
 - COMPOSER_MEMORY_LIMIT=-1

Should you want to use the storefront and/or admin watcher, add a file docker-compose.watcher.yaml to your .ddev directory:

version: "3.6"

services:
    web:
        expose:
            # Storefront Hot Proxy Ports
            - 9997
            - 9998
            - 9999
        environment:
            # Shopware Administration Watch Host
            - HOST=0.0.0.0
            # Shopware Administration Watch Port
            - PORT=9997
            # Expose APP_URL to administration watcher
            - APP_URL=http://${DDEV_SITENAME}.ddev.site
            - HTTP_EXPOSE=${DDEV_ROUTER_HTTP_PORT}:80,${DDEV_MAILHOG_PORT}:8025,9999:9999,9998:9998,9997:9997
            - HTTPS_EXPOSE=${DDEV_ROUTER_HTTPS_PORT}:80,${DDEV_MAILHOG_HTTPS_PORT}:8025,8899:9999,8888:9998,8887:9997
  • Related