Files
github-profile-views-counter/rust-app/docker-compose.yml
Claude e48b9d6a6b Add Rust implementation using shields.rs for badge generation
This adds a complete Rust rewrite of the GitHub Profile Views Counter
using the shields.rs crate for badge generation. The implementation
includes:

- Badge rendering with shields crate (flat, flat-square, plastic,
  for-the-badge, and pixel styles)
- HTTP server using axum framework
- File-based storage with file locking
- Optional PostgreSQL storage (via postgres feature)
- Username validation following GitHub rules
- Number formatting with commas and abbreviations (K, M, B, etc.)
- Docker support with multi-stage build
2026-01-25 13:49:10 +00:00

18 lines
288 B
YAML

services:
app:
build: .
ports:
- "8080:8080"
environment:
- HOST=0.0.0.0
- PORT=8080
- REPOSITORY=file
- STORAGE_PATH=/app/storage
- RUST_LOG=info
volumes:
- storage:/app/storage
restart: unless-stopped
volumes:
storage: