# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ # 🚀 BUILT & MAINTAINED BY THE ALTSTACK # 🌍 https://thealtstack.com # 💡 Open-source deployment templates for modern self-hosting. # ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ version: '3.8' services: plausible: image: plausible/analytics:latest container_name: plausible restart: unless-stopped ports: - "8000:8000" environment: - DATABASE_URL=postgres://plausible:plausible@db:5432/plausible - SECRET_KEY_BASE=replace-me-with-a-secure-random-string db: image: postgres:14-alpine container_name: plausible-db restart: unless-stopped environment: - POSTGRES_USER=plausible - POSTGRES_PASSWORD=plausible - POSTGRES_DB=plausible