Add Docker Compose with HAProxy authentication#9
Open
joelhelbling wants to merge 3 commits into
Open
Conversation
- Multi-stage build using golang:1.23-alpine and alpine:3.20 - CGO enabled for SQLite support - Includes static files for web UI - Documents Docker build/run in README 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Excludes git history, build artifacts, and local config files from Docker build context. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- compose.yml with minimalytics and haproxy services - HAProxy config with basic auth for dashboard, open /api/event/ - Both containers use alpine:3.20 for shared base layers - .env.example with documented configuration options - Updated README with Docker Compose instructions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
compose.ymlwith two services: minimalytics + HAProxy auth proxy/api/event/open for ingestionalpine:3.20for shared base layers (smaller total size).env.examplewith documented configuration optionsFiles added
compose.yml- Docker Compose configurationproxy/Dockerfile- HAProxy container (alpine:3.20)proxy/haproxy.cfg- HAProxy config with auth rules.env.example- Environment variable templateUsage
cp .env.example .env # Edit .env with your credentials docker compose up -dhttp://localhost:3334http://localhost:3334/api/event/Test plan
cp .env.example .envand configure credentialsdocker compose up -d/api/event/works without auth:🤖 Generated with Claude Code