Files
computer-playbook/roles/svc-db-mariadb/meta/services.yml

45 lines
1.2 KiB
YAML

---
mariadb:
modes:
compose:
enabled: true
swarm:
enabled: true
# nocheck: default-placement-manager central RDBMS, single-node until multi-replica replication (galera / async) is in scope
placement: manager
bond: 1
enabled: true
shared: true
version: "13.0"
custom: true
image: mariadb
name: mariadb
min_storage: 308MB
backup:
database_routine: true
cpus: "2.0"
mem_reservation: 2g
mem_limit: 4g
pids_limit: 1024
exposed: false
healthcheck:
test: ["CMD-SHELL", "healthcheck.sh --su-mysql --connect --innodb_initialized"]
retries: 18
ports:
local:
mariadb: 3306
internal:
mariadb: 3306
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: 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