Skip to content

docs: Compose name is shop-id-env; VPS SoT is name: with --env-file - #30

Merged
ROBJkE merged 6 commits into
mainfrom
cursor/docs-compose-project-name-36d1
Sep 17, 2026
Merged

ROBJkE merged 6 commits into
mainfrom
cursor/docs-compose-project-name-36d1

Conversation

@ROBJkE

@ROBJkE ROBJkE commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Rewrite overlay operator docs for the locked Compose name + file layout:

  • One Compose project name on local and VPS: ${SHOPWARE_SHOP_ID}-${SHOPWARE_DEPLOY_ENV} (e.g. acme-dev / acme-live). Not folder basename, not shopware-<shop-id>.
  • Shared committed .env holds shared keys only: no COMPOSE_PROJECT_NAME, no real SHOPWARE_DEPLOY_ENV.
  • Host .env.local holds SHOPWARE_DEPLOY_ENV and COMPOSE_PROJECT_NAME=<shop-id>-<env>.
  • fyrst-cli shopware env init strips create’s COMPOSE_PROJECT_NAME=sw-shop-… from shared .env, writes those host keys, and sets gitignored compose.override.yaml name: for shopware-cli project dev.
  • VPS Compose naming SoT is only deploy/compose.yaml name: ${SHOPWARE_SHOP_ID}-${SHOPWARE_DEPLOY_ENV} with host --env-files (.env, then .env.local, then .env.prod if present). fyrst-cli does not pass a project-name flag. Raw Compose must use those same --env-file flags (omit a flag if that host file is missing) and must not set a project-name flag.
  • If Flex still appends SHOPWARE_DEPLOY_ENV=live, empty/omit it in shared .env.

What changed

  • README.md / CREATE.md: unified name; host .env.local + compose.override.yaml; stacked --env-file; VPS SoT is compose name: only. Identity flag blocks stay lists where edited.
  • overlay/.env.example, overlay/deploy/README.md, sync-runtime.md, compose.yaml / compose.prod.yaml / compose.vps.yaml comments: same contract.
  • tests/package.test.php: assert <shop-id>-<env>, .env.local, compose.override.yaml, stacked --env-file; reject shopware-<shop-id>, folder basename, and Compose project-name flag wording.

Out of this PR

  • fyrst-dev/cli — not changed here (parallel).
  • fyrst-dev/recipes — not changed here (parallel).
  • No deploy/*.sh wrappers and no Flex copy-from-package ownership change (compose.override.yaml is not in overlay/).
Open in Web Open in Cursor 

cursoragent and others added 3 commits September 17, 2026 06:59
Align overlay operator docs with locked env init: it writes
COMPOSE_PROJECT_NAME=shopware-<shop-id> (no env suffix) so local
project dev and VPS compose share a stable name. Drop the obsolete
always-comment-out / strip wording.

Co-authored-by: ROBJkE <ROBJkE@users.noreply.github.com>
COMPOSE_PROJECT_NAME from env init is for shopware-cli project dev only.
VPS Compose project remains shop-id + deploy env; fyrst-cli pins VPS
compose so .env COMPOSE_PROJECT_NAME does not override name:.

Co-authored-by: ROBJkE <ROBJkE@users.noreply.github.com>
….local

Shared committed .env holds shared keys only (no COMPOSE_PROJECT_NAME, no
real SHOPWARE_DEPLOY_ENV). env init strips create's sw-shop-… line and
writes SHOPWARE_DEPLOY_ENV to host .env.local. VPS stack name remains
<shop-id>-<env> via deploy compose name: / fyrst-cli -p from loaded identity.

Co-authored-by: ROBJkE <ROBJkE@users.noreply.github.com>
@cursor cursor Bot changed the title docs: env init sets COMPOSE_PROJECT_NAME=shopware-<shop-id> docs: strip COMPOSE_PROJECT_NAME from shared .env; deploy env in .env.local Sep 17, 2026
Host .env.local holds SHOPWARE_DEPLOY_ENV and COMPOSE_PROJECT_NAME=<shop-id>-<env>
(e.g. acme-dev / acme-live). env init still strips create's sw-shop-… from
shared .env and sets gitignored compose.override.yaml name: for project dev.

Co-authored-by: ROBJkE <ROBJkE@users.noreply.github.com>
@cursor cursor Bot changed the title docs: strip COMPOSE_PROJECT_NAME from shared .env; deploy env in .env.local docs: local and VPS Compose name is shop-id-env Sep 17, 2026
VPS naming SoT is deploy/compose.yaml name: with stacked --env-file
.env then .env.local then .env.prod. fyrst-cli -p only pins that same
name. Raw Compose must pass the same flags. Shared .env still omits
COMPOSE_PROJECT_NAME and a real SHOPWARE_DEPLOY_ENV.

Co-authored-by: ROBJkE <ROBJkE@users.noreply.github.com>
@cursor cursor Bot changed the title docs: local and VPS Compose name is shop-id-env docs: Compose name is shop-id-env; VPS SoT is name: with --env-file Sep 17, 2026
VPS naming SoT is only deploy/compose.yaml name: with stacked
--env-file .env then .env.local then .env.prod. fyrst-cli does not
pass -p; raw Compose examples do not use -p.

Co-authored-by: ROBJkE <ROBJkE@users.noreply.github.com>
@ROBJkE
ROBJkE marked this pull request as ready for review September 17, 2026 09:39
@ROBJkE
ROBJkE merged commit ae928e0 into main Sep 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants