services.ymlΒΆ

---
sso:
  bond: 1
  enabled: "{{ 'web-app-keycloak' in group_names }}"
  shared: "{{ 'web-app-keycloak' in group_names }}"
  flavor: oidc
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 }}"
email:
  bond: 1
  enabled: "{{ MAIL_PROVIDER in group_names }}"
  shared: "{{ MAIL_PROVIDER in group_names }}"
# nocheck: shared
# nocheck: dynamic-flag
redis:
  bond: 1
  backup:
    disabled: true
  enabled: true # nocheck: dynamic-flag
  shared: "{{ 'svc-db-redis' in group_names }}"
  cpus: "0.3"
  mem_reservation: 256m
  mem_limit: 512m
  pids_limit: 256
postgres:
  bond: 1
  enabled: true # nocheck: dynamic-flag
  shared: "{{ 'svc-db-postgres' in group_names }}"
# nocheck: container-healthcheck-unused  rendered through the mastodon_service macro, whose service_name is a macro parameter
mastodon:
  modes:
    compose:
      enabled: true
    swarm:
      enabled: true
  bond: 1
  shared: true
  enabled: true # nocheck: dynamic-flag
  image: ghcr.io/mastodon/mastodon
  version: v4.6.2
  min_storage: 535MB
  backup:
    no_stop_required: true
  name: mastodon
  cpus: "1.0"
  mem_reservation: 1.5g
  mem_limit: 2g
  pids_limit: 512
  single_user_mode: false
  ports:
    local:
      websocket: 4001
      http: 8009
    internal:
      http: 3000
      websocket: 4000
  proxy:
    service_key: mastodon
  healthcheck:
    flavor: wget
    path: health
  run_after:
    - web-app-keycloak
  lifecycle: beta
# nocheck: container-healthcheck-unused  rendered through the mastodon_service macro, whose service_name is a macro parameter
streaming:
  image: ghcr.io/mastodon/mastodon-streaming
  version: v4.6.2
  name: mastodon-streaming
  cpus: "0.3"
  mem_reservation: 256m
  mem_limit: 512m
  pids_limit: 256
  min_storage: 309MB
  ports:
    internal:
      http: 4000
  healthcheck:
    flavor: wget
    path: api/v1/streaming/health
# nocheck: container-healthcheck-unused  rendered through the mastodon_service macro, whose service_name is a macro parameter
sidekiq:
  name: mastodon-sidekiq
  healthcheck:
    test: ["CMD-SHELL", "pgrep -f sidekiq || exit 1"]
    # nocheck: healthcheck-timing-override  a worker with no endpoint, so its liveness is checked rarely
    interval: 1m
    # nocheck: healthcheck-timing-override  carried over and never measured; pgrep fits the 5s default
    timeout: 10s
  cpus: "0.8"
  mem_reservation: 1g
  mem_limit: 1.5g
  pids_limit: 512
migrate:
  # nocheck: single-replica
  replicas: 1
  name: mastodon-migrate
  cpus: "1.0"
  mem_reservation: 1g
  mem_limit: 2g
  pids_limit: 512
# nocheck: playwright-service-flag β€” object store, no Playwright surface
minio:
  enabled: false # nocheck: dynamic-flag
  shared: false # nocheck: dynamic-flag
  public: true
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