ToughBlue IT Health Check — Flask app for on-site assessments, scoring, and client reports.
434
Web application for ToughBlue Uganda’s IT Health Check programme: capture on-site assessment answers, generate scored client reports, and print engineer questionnaires.
Built with Python 3.12, Flask, and Gunicorn. Assessment data is stored in SQLite on a persistent volume.
/print)/health)| Tag | Use |
|---|---|
stage | Staging environment (branch develop) |
lts | Production (branch main) |
sha-<commit> | Specific build for rollback |
docker run -d \
--name tb-health-check \
-p 8095:8080 \
-e SECRET_KEY="replace-with-a-long-random-string" \
-e FLASK_ENV=production \
-v tb-healthcheck-data:/app/data \
--restart unless-stopped \
pesky/tb-health-check:stage
Check health:
curl http://localhost:8095/health
Clone the GitLab repo and use the production compose file:
git clone ssh://[email protected]:2424/tb-owners/it-health-check.git
cd it-health-check
cp .env.example .env
# Edit .env: SECRET_KEY, HEALTHCHECK_TAG (stage or lts)
docker compose -f docker-compose.prod.yml pull
docker compose -f docker-compose.prod.yml up -d
| Variable | Required | Description |
|---|---|---|
SECRET_KEY | Yes (production) | Flask session secret — use a long random string |
FLASK_ENV | Recommended | Set to production on servers |
| Container | Host (default) |
|---|---|
8080 | 8095 (configurable via HOST_PORT in Compose) |
Mount /app/data to keep SQLite assessments across container restarts:
-v tb-healthcheck-data:/app/data
Content type
Image
Digest
sha256:4ac7c05e8…
Size
47.5 MB
Last updated
9 days ago
docker pull pesky/tb-health-check:sha-e254abd3