---
title: Deploy Shopware with AI on Blossom
url: "/deploy/shopware/"
canonical_url: https://blossom88.com/deploy/shopware/
markdown_url: https://blossom88.com/deploy/shopware.md
summary: Publish a sample product and verify that the product image and basket survive
  a Shopware update.
categories:
- deployment
- commerce
stack:
- PHP
- Symfony
- Vue
- Twig
- MySQL
---

# Deploy Shopware with AI on Blossom

[Shopware](https://www.shopware.com/) gives you a storefront and an
admin for products, sales channels, and orders.

## Ask Your Agent

> **Ask your AI agent:** Deploy Shopware Community Edition on Blossom and help me put a sample product in a basket.
>
> Follow this guide: https://blossom88.com/deploy/shopware/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## Have Ready

Nothing is required beyond your Blossom account.

- **A Shopware project** (Later): Start with the official Community Edition project template if you do not have a shop yet.

## How It Runs

| Part | Role | Where |
|---|---|---|
| Shopware | Serve the storefront and administration | Persistent Service with one Container |
| MySQL | Store products, baskets, and shop settings | Blossom Managed Data |
| Product media and theme files | Keep the files that your storefront uses | Volume mounted at /data/shopware |

## Deploy Shopware Community Edition

Start with the [official Shopware project](https://github.com/shopware/template)
and use its [production Docker setup](https://developer.shopware.com/docs/guides/hosting/installation-updates/docker.html).
Link MySQL and keep the demo storefront and administration behind
Blossom Account access while you test it.

<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    blossom database_instance:create --data mysql.yml
    blossom environment_link:create --data database-link.yml
    blossom service:create --data shopware.yml
    blossom environment:deploy --id environment-100 --follow

</details>

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Set `APP_URL` to the store’s HTTPS address and keep `APP_SECRET` stable.
For the generated HTTPS endpoint, set `SYMFONY_TRUSTED_PROXIES` to
`private_ranges` and `SYMFONY_TRUSTED_HEADERS` to
`x-forwarded-proto,x-forwarded-port`. This lets Shopware use the scheme
and port supplied by Blossom’s private routing proxy.
When passing the Blossom MySQL link through `DATABASE_URL`, change the
`mysql2://` prefix to `mysql://` for Shopware’s PHP driver. Keep the rest
of the URL intact.

Build the application and its assets into the image. Initialize the
database and set the admin password before opening the storefront.

Mount a [Persistent Service Volume](/docs/apps/persistent-services/) at
`/data/shopware`. In the image, link `public/media`, `public/theme`,
`public/thumbnail`, `public/sitemap`, `files`, and `config/jwt` to their
matching directories on that Volume. Have the entrypoint create those
directories for the application user before starting the web server.

For the first install, run `php bin/console system:install --basic-setup`
and `php bin/console user:change-password admin` as the application user
with the same database and URL settings as the web server.

</details>

## Publish a Sample Product

Create one product with stock, a price, and an uploaded image. Make it
visible in the storefront’s sales channel.

> **Ask your AI agent:** Publish a sample notebook with an image and open its storefront page.

> Follow this guide: https://blossom88.com/deploy/shopware/



![Reopen the sample Shopware product and its image.](/deploy/assets/images/shopware/shopware-product.webp)

## Put It in a Basket

Open the storefront and add the product to a basket. Keep that session
for the replacement check.

> **Ask your AI agent:** Add the notebook to a sample basket and show me what’s in it.

> Follow this guide: https://blossom88.com/deploy/shopware/



![See the notebook in the Shopware basket.](/deploy/assets/images/shopware/shopware-basket.webp)

## Reopen After an Update

Keep the database and Volume when you replace the Shopware Container.
Reopen the product and check the basket.

> **Ask your AI agent:** Replace the Shopware Container and reopen my sample product and basket.

> Follow this guide: https://blossom88.com/deploy/shopware/



## What You Get

A sample Shopware storefront you can explore with one product and a
basket. The product, uploaded image, and basket remain available
after Container replacement.

## What You Get

- A Shopware storefront and administration page
- A sample product with an image and a basket you can open
- The same product, image, and basket after Container replacement

Tested on Blossom: A product, its exact image bytes, and the same basket survived Container replacement.
