mirror of
https://github.com/antonkomarev/github-profile-views-counter.git
synced 2026-07-31 01:18:18 -04:00
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
18 lines
288 B
YAML
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:
|