From a8cd59e39c93fe6e10595f93a1ec4d4d4b34a1af Mon Sep 17 00:00:00 2001 From: Shyim Date: Thu, 11 Sep 2025 12:00:19 +0200 Subject: [PATCH 1/2] Remove image proxy setup instructions from Docker guide Removed instructions for setting up an image proxy server in Docker. --- guides/installation/setups/docker.md | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/guides/installation/setups/docker.md b/guides/installation/setups/docker.md index 4aff8a9fd..878c08f15 100644 --- a/guides/installation/setups/docker.md +++ b/guides/installation/setups/docker.md @@ -202,33 +202,7 @@ You can also open `https://orb.local` in your browser and see all running contai ## Proxy Production Images -Typically, you import for local development a copy of the production database to your local environment. This allows you to test changes with production similar data. However, this can lead to issues that all images are missing in the local environment. To avoid this, you can download all images from the production environment and import them into your local environment. Or set up a proxy server that serves the images from the production environment. - -To do this, you can add a `imageproxy` service to your `compose.override.yaml`: - -```yaml -services: - imageproxy: - image: ghcr.io/shopwarelabs/devcontainer/image-proxy - ports: - - "8050:80" - environment: - # Your production URL. - REMOTE_SERVER_HOST: shopware.com -``` - -This will start a proxy server that serves all images from the production environment. In this case if we request `http://localhost:8050/assets/images.png`, it will load `https://[REMOTE_SERVER_HOST]/assets/images.png` and serve it to the local environment, it will also cache the images locally. - -Next, we need to configure Shopware to use the proxy server. To do this, create a new YAML file `config/packages/media-proxy.yaml` - -```yaml -shopware: - filesystem: - public: - url: "http://localhost:8050" -``` - -This will tell Shopware to use the proxy server URL for all images. + ## Known issues From 43b6c4ce9870bfbf4294fcb1e23c89de6c5fa806 Mon Sep 17 00:00:00 2001 From: Bojan Rajh <117360292+bojanrajh@users.noreply.github.com> Date: Thu, 11 Sep 2025 13:30:23 +0200 Subject: [PATCH 2/2] Update guides/installation/setups/docker.md --- guides/installation/setups/docker.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/installation/setups/docker.md b/guides/installation/setups/docker.md index 878c08f15..102f6bcca 100644 --- a/guides/installation/setups/docker.md +++ b/guides/installation/setups/docker.md @@ -202,7 +202,7 @@ You can also open `https://orb.local` in your browser and see all running contai ## Proxy Production Images - + ## Known issues