---
memcached:
modes:
compose:
enabled: true
swarm:
enabled: true
# nocheck: default-placement-manager central cache engine: single shared in-memory instance pinned to one node, reached cross-stack over the shared overlay
placement: manager
bond: 1
enabled: true
shared: true
image: memcached
version: 1.6.45-alpine
name: memcached
min_storage: 206MB
backup:
disabled: true
cpus: "0.25"
mem_reservation: "64m"
mem_limit: "256m"
pids_limit: 256
healthcheck:
test: ["CMD-SHELL", "printf 'version\\r\\n' | nc -w 1 127.0.0.1 11211 | grep -q VERSION"]
retries: 18
ports:
local:
memcached: 11211
internal:
memcached: 11211
onion:
# nocheck: onion-flag the session cache speaks an unauthenticated text protocol and is read only by app containers on the role network
memcached: false
lifecycle: beta
# 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: variants-coverage the role has a single variant, and the guide edge is not a dimension of it: a second round would differ only by the README replay
docs:
bond: 0.5
enabled: "{{ 'web-app-docs' in group_names }}"
shared: "{{ 'web-app-docs' in group_names }}"