feat(txt-game): initial module scaffold

Number guessing game (1-100, 7 attempts) as a HAL custom-app module.
Serves HTML form UI with per-session state via cookie, no npm deps.
Traefik labels for txt.${DOMAIN} on websecure with letsencrypt TLS.
This commit is contained in:
HAL
2026-07-08 17:27:27 +02:00
commit 17adb00cc3
6 changed files with 304 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
services:
txt-game:
build: .
restart: unless-stopped
environment:
- DOMAIN=${DOMAIN:-localhost}
labels:
- "traefik.enable=true"
- "traefik.http.routers.txt-game.rule=Host(`txt.${DOMAIN:-localhost}`)"
- "traefik.http.routers.txt-game.entrypoints=websecure"
- "traefik.http.routers.txt-game.tls.certresolver=letsencrypt"
- "traefik.http.services.txt-game.loadbalancer.server.port=3000"
networks:
- proxy
- default
networks:
proxy:
external: true