Files
computer-playbook/roles/web-app-n8n/meta/services.yml

126 lines
4.2 KiB
YAML

---
# nocheck: seaweedfs-required — n8n stores workflows in postgres, not object storage
sso:
bond: 1
enabled: "{{ 'web-app-keycloak' in group_names }}"
shared: "{{ 'web-app-keycloak' in group_names }}"
flavor: oauth2
oauth2:
pass_access_token: true
origin:
host: n8n
port: 5678
allowed_groups:
- "{{ lookup('rbac_group_path', application_id='web-app-n8n', role='administrator') }}"
- "{{ lookup('rbac_group_path', application_id='web-app-n8n', role='mcp') }}"
email:
bond: 1
enabled: "{{ MAIL_PROVIDER in group_names }}"
shared: "{{ MAIL_PROVIDER in group_names }}"
logout:
bond: 1
enabled: "{{ 'web-svc-logout' in group_names }}"
shared: "{{ 'web-svc-logout' 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 }}"
prometheus:
bond: 1
enabled: "{{ 'web-app-prometheus' in group_names }}"
shared: "{{ 'web-app-prometheus' in group_names }}"
# nocheck: playwright-service-flag — css consumer, no Playwright surface (provider: web-svc-css)
css:
bond: 1
enabled: "{{ 'web-svc-css' in group_names }}"
shared: "{{ 'web-svc-css' in group_names }}"
# nocheck: shared
# nocheck: dynamic-flag
# nocheck: playwright-service-flag — DB engine, covered by role-local integration tests
postgres:
bond: 1
enabled: true
shared: "{{ 'svc-db-postgres' 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: playwright-service-flag self-provider
n8n:
enabled: true
shared: true
bond: 1
healthcheck:
flavor: wget
path: healthz/readiness
modes:
compose:
enabled: true
swarm:
enabled: true
backup:
no_stop_required: false
image: docker.n8n.io/n8nio/n8n
version: "3.0.1"
update:
type: registry_tags
image: docker.n8n.io/n8nio/n8n
name: n8n
min_storage: 422MB
cpus: "1.0"
mem_reservation: 512m
mem_limit: 1g
pids_limit: 512
# nocheck: single-replica n8n Community Edition caches isInstanceOwnerSetUp per process with no cross-replica invalidation; replicas that miss the owner-setup POST keep serving showSetupOnFirstLoad=true and bounce the SPA to /setup after login; multi-main requires licensed queue mode
replicas: 1
ports:
internal:
http: 5678
local:
http: 8080
sso: 16510
run_after:
- web-app-keycloak
- web-app-matomo
- web-app-stalwart
- web-app-mailu
lifecycle: beta
# 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
# nocheck: dynamic-flag - the gateway is a single shared instance, never deployed per consumer
litellm:
bond: 0.5
enabled: "{{ LITELLM_USABLE }}"
shared: true
# nocheck: playwright-service-flag MCP pairing is proven by the role's own MCP spec, not by a per-consumer gate
openwebui:
bond: 0.5
enabled: "{{ 'web-app-openwebui' in group_names }}"
shared: "{{ 'web-app-openwebui' in group_names }}"
# nocheck: playwright-service-flag MCP pairing is proven by the role's own MCP spec, not by a per-consumer gate
hermes:
bond: 0.5
enabled: "{{ 'web-app-hermes' in group_names }}"
shared: "{{ 'web-app-hermes' in group_names }}"
# nocheck: playwright-service-flag MCP pairing is proven by the role's own MCP spec, not by a per-consumer gate
openclaw:
bond: 0.5
enabled: "{{ 'web-app-openclaw' in group_names }}"
shared: "{{ 'web-app-openclaw' in group_names }}"
# nocheck: playwright-service-flag MCP pairing is proven by the role's own MCP spec, not by a per-consumer gate
# nocheck: dynamic-flag the entry refuses this client, so the link is off on every host and no group_names gate can decide it
flowise:
enabled: false
shared: false
mcp_consumer: false