Skip to content

docs: docker-compose example with a persistent volume - #6

Open
dndrade wants to merge 4 commits into
Arjun0606:mainfrom
dndrade:docs/docker-compose
Open

docs: docker-compose example with a persistent volume#6
dndrade wants to merge 4 commits into
Arjun0606:mainfrom
dndrade:docs/docker-compose

Conversation

@dndrade

@dndrade dndrade commented Jul 14, 2026

Copy link
Copy Markdown

What this does
Adds docs/docker-compose.yml with a bind-mounted ./data volume for persistence, plus a "Docker Compose" section in docs/README.md covering setup, secrets (inline or via .env), running, and verifying persistence.

Why
Closes #4. docker run is in the README, but the first thing a self-hoster reaches for is a compose file with a persistent volume and the env vars (SMOLANALYTICS_PASSWORD, write key) in one place.

Checklist

  • make fmt vet race is green
  • analytics changes have a test that pins the numbers (n/a — docs-only change)
  • no new third-party dependencies (n/a — no code, just a compose file + docs)

Tested locally: docker-compose up -d → logged in via the password gate → docker-compose downup -d → session and data both persisted without re-login.

@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown

@dndrade is attempting to deploy a commit to the karjunvarma2001-1730's projects Team on Vercel.

A member of the Team first needs to authorize it.

@dndrade

dndrade commented Jul 15, 2026

Copy link
Copy Markdown
Author

@Arjun0606, just wanted to follow up on this PR! It's mostly docs and a template setup, so should be pretty straightforward to review. Let me know if you'd like any adjustments!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: docker-compose example with a persistent volume

1 participant