Developing Shopware Plugins
Environment Strategy
Create Environment
shop:
image: dockware/shopware:6.7.2.2
container_name: shop
volumes:
# ----------------------------------------------------------------------------------------------------------------------------------
# PLUGINS
# our plugin GIT repository is in a sub folder custom/plugins
- "./custom/plugins/MyPlugin:/var/www/html/custom/plugins/MyPlugin"
# ----------------------------------------------------------------------------------------------------------------------------------
# exclude some folders for better performance
# this uses anonymous volumes that leads to container/host decoupling for these folders
# therefore less bind-mount -> better performance
- "/var/www/html/custom/plugins/MyPlugin/.git/"
- "plugin_vendor:/var/www/html/custom/plugins/MyPlugin/vendor/"
- "plugin_node_admin:/var/www/html/custom/plugins/MyPlugin/src/Resources/app/administration/node_modules/"
- "plugin_node_storefront:/var/www/html/custom/plugins/MyPlugin/src/Resources/app/storefront/node_modules/"
ports:
- "80:80"
- "443:443"
- "3306:3306"
environment:
- XDEBUG_ENABLED=1Prepare Local Shopware
Where to go from here?
Last updated
Was this helpful?