shopware/docker-dev
Composer 安装命令:
composer require shopware/docker-dev
包简介
Docker Configuration for Local Development
README 文档
README
Shopware/docker-dev is a meta package and Symfony Flex recipe that simplifies local Docker-based development for Shopware projects. It provides a standardized setup to get your Shopware environment running quickly and consistently using Docker and Docker Compose.
This setup is ideal for plugin, app, or core development and ensures your development stack matches Shopware’s best practices and current requirements.
Features
- Plug-and-play local Docker development with ready-to-use Dockerfile and Docker Compose setup
- Reproducible environment: Consistent local setup aligned with Shopware’s recommendations
- Seamless integration: Adds the Docker configuration to your project via Composer and Symfony Flex
- Easy updates: Stay up-to-date with Docker setup improvements simply by updating the package
Quick Start
-
Create a new folder:
mkdir my-project cd my-project -
Create new Shopware project:
docker run --rm -it -v $PWD:/var/www/html ghcr.io/shopware/docker-dev:php8.3-node22-caddy new-shopware-setup # or specific version docker run --rm -it -v $PWD:/var/www/html ghcr.io/shopware/docker-dev:php8.3-node22-caddy new-shopware-setup 6.6.10.0This will create a new Shopware project and create configuration files for docker compose.
-
Start the Docker environment:
make up -
Access your Shopware instance:
- By default, your app is available at http://localhost:8000
How It Works
- The recipe will add a pre-configured
Dockerfiletailored for Shopware and compatible with modern PHP environments. - Typical steps include building your Shopware project with the shopware-cli image and serving it with a lightweight PHP/Caddy/NGINX container.
- You can adjust environment variables (PHP version, ports, etc.) by editing the generated Dockerfile or Docker Compose overrides as needed.
Keeping Your Docker Setup Up-To-Date
Instead of copying Dockerfiles manually, keep your Docker environment current by managing it as a Symfony Flex recipe via Composer.
Run the following to update as needed:
composer update shopware/docker
This will automatically pull in the latest Docker configuration updates from Shopware.
Documentation and Help
Contributing
Pull requests, issues, and feedback are welcome! Please see Shopware's contribution guidelines for more information.
shopware/docker-dev 适用场景与选型建议
shopware/docker-dev 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13.39k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2025 年 04 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 shopware/docker-dev 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 shopware/docker-dev 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 13.39k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-08