shopware/docker-dev 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Create a new folder:

    mkdir my-project
    cd my-project
    
  2. 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.0
    

    This will create a new Shopware project and create configuration files for docker compose.

  3. Start the Docker environment:

    make up
    
  4. Access your Shopware instance:

How It Works

  • The recipe will add a pre-configured Dockerfile tailored 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 我们能提供哪些服务?
定制开发 / 二次开发

基于 shopware/docker-dev 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 13.39k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 10
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 7
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-08