Add hit counter service and expand frontend content sections
- New hit-counter FastAPI service (Prometheus metrics, SQLite storage), wired into Caddy (hits.carloselugo.com) and docker-compose - Scrape hit-counter in Prometheus every 5m - Add articles, about, contact, experience, and expertise sections to the frontend, with per-article hit tracking Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,7 @@ services:
|
||||
- caddy_data:/data
|
||||
- caddy_config:/config
|
||||
- caddy_logs:/var/log/caddy
|
||||
- /opt/void/frontend:/srv/void:ro
|
||||
networks:
|
||||
- web-net
|
||||
depends_on:
|
||||
@@ -208,6 +209,16 @@ services:
|
||||
# sysctls:
|
||||
# - net.ipv6.conf.all.disable_ipv6=1
|
||||
|
||||
# ─── Hit Counter ───────────────────────────────────────────────────────────
|
||||
hit-counter:
|
||||
build: ./hit-counter
|
||||
container_name: hit-counter
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- hit_counter_data:/data
|
||||
networks:
|
||||
- web-net
|
||||
|
||||
volumes:
|
||||
caddy_data:
|
||||
caddy_config:
|
||||
@@ -218,6 +229,7 @@ volumes:
|
||||
portainer_data:
|
||||
prometheus_data:
|
||||
grafana_data:
|
||||
hit_counter_data:
|
||||
# umami_db_data:
|
||||
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user