Files
computer-playbook/roles/web-app-shopware/meta/services.yml
kevinveenbirkenbachandClaude Opus 5.5 2348d48110 fix(web-app-shopware): move PHP base to docker-base 8.3.36-caddy
The bare ghcr.io/shopware/docker-base:8.3 tag is frozen. Its digest
sha256:14826eb9 is the same as 8.3.25, built 2025-09-05, and carries
PHP_VERSION=8.3.25. Upstream has published only flavoured tags since
8.3.26. 8.3.36-caddy (sha256:b1fdca6e, built 2026-10-30, also the
current 8.3-caddy) carries PHP_VERSION=8.3.36. It has the same
supervisord entrypoint, www-data user and exposed ports 8000/9000 as
the bare tag. That clears the 8.3.36 security floor that hlth-runtime
reports for shopware-web, -worker and -scheduler.

The flavoured tag needs two follow-ups:

- SHOPWARE_COMPOSER_PLATFORM_PHP drops the "-<flavor>" suffix before it
  pads major.minor. Without that, composer gets platform.php
  "8.3.36-caddy". It now renders 8.3.36, and 8.3 still renders 8.3.0.
- shopware/docker 6ae1717 ("feat: remove default env vars") removed
  SHOPWARE_ES_ENABLED=0, SHOPWARE_ES_INDEXING_ENABLED=0 and
  SHOPWARE_ES_INDEX_PREFIX= from the image. Shopware 6.7.13.0 reads
  them through %env()% with no container default, so env.j2 now sets
  the values the old image shipped. SHOPWARE_HTTP_DEFAULT_TTL keeps its
  7200 default from core services.xml. Nothing in Shopware reads
  DATABASE_PORT, and the role uses DATABASE_URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 00:45:19 +01:00

180 lines
4.1 KiB
YAML

---
# nocheck: seaweedfs-playwright - the object store is reached only through the Flysystem amazon-s3 public/private/theme/sitemap adapters; Shopware exposes no object-browser surface to script
logout:
bond: 1
enabled: "{{ 'web-svc-logout' in group_names }}"
shared: "{{ 'web-svc-logout' in group_names }}"
# nocheck: dynamic-flag
# nocheck: oidc
sso:
bond: 1
enabled: "{{ 'web-app-keycloak' in group_names }}"
shared: "{{ 'web-app-keycloak' in group_names }}"
flavor: oidc
ldap:
bond: 1
enabled: "{{ 'svc-db-openldap' in group_names }}"
shared: "{{ 'svc-db-openldap' in group_names }}"
dashboard:
bond: 1
enabled: "{{ 'web-app-dashboard' in group_names }}"
shared: "{{ 'web-app-dashboard' in group_names }}"
matomo:
bond: 1
enabled: "{{ 'web-app-matomo' in group_names }}"
shared: "{{ 'web-app-matomo' in group_names }}"
email:
bond: 1
enabled: "{{ MAIL_PROVIDER in group_names }}"
shared: "{{ MAIL_PROVIDER in group_names }}"
mariadb:
bond: 1
enabled: true # nocheck: dynamic-flag
shared: "{{ 'svc-db-mariadb' in group_names }}"
init:
name: shopware-init
# nocheck: single-replica
replicas: 1
cpus: 1.0
mem_reservation: 1g
mem_limit: 2g
min_storage: 1GB
pids_limit: 256
shopware:
modes:
compose:
enabled: true
swarm:
enabled: true
image: composer
version: "2.11"
custom: true
min_storage: 278MB
package:
name: shopware/production
version: 6.7.13.0
title: "{{ ORGANIZATION }} Shop"
proxy:
service_key: web
ports:
internal:
http: 8000
local:
http: 8060
run_after:
- web-app-keycloak
- web-app-stalwart
- web-app-mailu
lifecycle: beta
cpus: "1.0"
mem_reservation: 1g
mem_limit: 2g
pids_limit: 1024
php:
image: ghcr.io/shopware/docker-base
version: "8.3.36-caddy"
min_storage: 295MB
cpus: "0.5"
mem_reservation: 256m
mem_limit: 1g
pids_limit: 512
web:
name: shopware-web
cpus: 1.0
mem_reservation: 1g
mem_limit: 2g
ports:
internal:
http: 8000
min_storage: 5GB
pids_limit: 512
worker:
healthcheck:
test: ["CMD", "php", "-v"]
name: shopware-worker
entrypoint:
- php
- bin/console
- messenger:consume
- async
- low_priority
- --time-limit=300
cpus: 1.0
mem_reservation: 1g
mem_limit: 2g
min_storage: 5GB
pids_limit: 512
scheduler:
healthcheck:
test: ["CMD", "php", "-v"]
name: shopware-scheduler
# nocheck: single-replica
replicas: 1
entrypoint:
- php
- bin/console
- scheduled-task:run
cpus: 0.5
mem_reservation: 512m
mem_limit: 1g
min_storage: 1GB
pids_limit: 256
# nocheck: shared
# nocheck: dynamic-flag
redis:
bond: 1
backup:
disabled: true
enabled: true # nocheck: dynamic-flag
shared: "{{ 'svc-db-redis' in group_names }}"
image: redis
version: 8-alpine
cpus: 0.25
mem_reservation: 256m
mem_limit: 512m
min_storage: 238MB
pids_limit: 256
# nocheck: shared
# nocheck: dynamic-flag
opensearch:
enabled: true # nocheck: dynamic-flag
# nocheck: single-replica
replicas: 1
image: opensearchproject/opensearch
version: 3.9.0
name: shopware-opensearch
ports:
internal:
http: 9200
cpus: 1.0
mem_reservation: 2g
mem_limit: 4g
min_storage: 1332MB
pids_limit: 1024
seaweedfs:
bond: 1
enabled: "{{ 'web-app-seaweedfs' in group_names }}"
shared: "{{ 'web-app-seaweedfs' in group_names }}"
public: true
css:
bond: 1
enabled: "{{ 'web-svc-css' in group_names }}"
shared: "{{ 'web-svc-css' in group_names }}"
prometheus:
bond: 1
enabled: "{{ 'web-app-prometheus' in group_names }}"
shared: "{{ 'web-app-prometheus' in group_names }}"
# nocheck: playwright-service-flag
# nocheck: variants-coverage — sso-variant-tor requires the onion on in every variant, so the false polarity has no variant left to live in
tor:
bond: 0.5
enabled: "{{ 'svc-net-tor' in group_names }}"
shared: true # nocheck: dynamic-flag
# nocheck: dynamic-flag
# nocheck: playwright-service-flag, dynamic-flag infrastructure backup consumer
container_backup: # nocheck: bond-baseline backup host joins outside the variant topology
bond: 1
enabled: "{{ 'svc-bkp-volume-2-local' in group_names }}"
shared: true