A reproducible Green Package Skill for deploying and operating a single-node PostHog product analytics suite on DigitalOcean.
- Compute: Single DigitalOcean Droplet (
s-4vcpu-8gbinams3) attached to the regional default VPC. - Ingress & TLS: Caddy 2.11.4 terminating TLS on ports 80/443 with automated certificates and proxying to PostHog web.
- Application: PostHog Web UI and Celery background workers.
- Storage & Databases:
- PostgreSQL 17 (
postgres:17-alpine) for application state and metadata. - ClickHouse 24.8 (
clickhouse/clickhouse-server:24.8-alpine) for columnar event data. - Redis 7.2 (
redis:7.2-alpine) for caching and asynchronous task queuing.
- PostgreSQL 17 (
- Disaster Recovery: Systemd timer
posthog-backup.timerexecuting/usr/local/sbin/posthog-backuptaking Postgrespg_dumpand ClickHouse table backups, synced viarcloneto Cloudflare R2 (posthog-backup).
# Render configuration and OpenTofu/Ansible stages locally
./green build
# Dry-run execution graph without provider side-effects
./green create --dry-run
# Provision and converge live infrastructure (requires credentials)
./green createbb test
bb golden
./scripts/launcher.sh