Files
tymeslot/compose.analytics.yml
2026-09-17 12:59:36 +01:00

20 lines
842 B
YAML

---
version: "3.8"
# Booking analytics: page-view tracking, cookie-less visitor counting, the attribution dashboard.
#
# Self-hosted instances have this off by default, and it is NOT switched on by an environment variable, it needs
# config :tymeslot, :booking_analytics_enabled, true
# which means a custom image. This overlay supplies the secret that enabling it then requires; on its own it changes nothing.
services:
app:
secrets:
- analytics_salt_secret
secrets:
# Keys the cookie-less daily visitor fingerprint. The app fails fast at boot if analytics is enabled and this is unset. Generate it ONCE and never change it: rotating re-hashes the same visitor and double-counts uniques.
analytics_salt_secret:
external: true
name: ${STACK_NAME}_analytics_salt_secret_${SECRET_ANALYTICS_SALT_SECRET_VERSION:-v1}