services.ymlΒΆ

---
postgres:
  modes:
    compose:
      enabled: true
    swarm:
      enabled: true
  # nocheck: default-placement-manager  central RDBMS, single-node until multi-replica replication (streaming / logical) is in scope
  placement: manager
  bond: 1
  enabled: true
  shared: true
  healthcheck:
    test: ["CMD-SHELL", "pg_isready -h 127.0.0.1"]
  image: postgres
  name: postgres
  version: "18"
  custom: true
  min_storage: 419MB
  backup:
    database_routine: true
    stop_required: true
  cpus: "2.0"
  mem_reservation: 3g
  mem_limit: 6g
  pids_limit: 1024
  exposed: false
  upgrade:
    backup_confirmed: false # Set true after confirming a backup when the volume's filesystem cannot reflink
  ports:
    local:
      postgres: 5432
    internal:
      postgres: 5432
  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

docs:
  bond: 0.5
  enabled: "{{ 'web-app-docs' in group_names }}"
  shared: "{{ 'web-app-docs' in group_names }}"