fix(svc-docker-registry): order after svc-docker-swarm via run_after

iter9 aborted at the registry deploy with
`failed to create network registry: ... This node is not a swarm manager`.
sys-svc-compose auto-sets `deployment_mode='swarm'` when the host is in
the svc-docker-swarm group, which makes networks.yml.j2 render the
registry's default network as `driver: overlay`. compose-up then tries
to create that overlay before `docker swarm init` has run, because the
generated tasks/groups/svc-docker-roles.yml orders roles alphabetically
(registry < swarm < swarm-manager).

Declare the dependency explicitly via run_after on svc-docker-swarm and
the matching `services.swarm` flag the registry's compose chain
genuinely consumes (it lives in a swarm overlay; the dependency is
hard, not cosmetic — hence the `# nocheck: dynamic-flag` literal `true`
in place of the usual `'<role>' in group_names` Jinja). The group-file
regenerator now emits registry after svc-docker-swarm, so overlay
creation hits an already-initialized cluster.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 4.7 committed 2026-06-03 00:23:14 +02:00
1 parent a21bf1ece5
commit cb65e4e319
1 file changed
+6
@@ -1,4 +1,8 @@
---
# nocheck: dynamic-flag
swarm:
enabled: true
shared: true
registry:
enabled: true
shared: true
@@ -14,3 +18,5 @@ registry:
local:
registry: 5000
lifecycle: alpha
run_after:
- svc-docker-swarm