MayaTheShy
01eef4eead
fix: correct typo in HEALTHCHECK start-period option
2026-03-22 20:44:57 -04:00
MayaTheShy
a499446366
fix: use wget for Docker health check instead of node
...
Spawning a full Node process for health checks is slow on Alpine and
can exceed the 3s timeout, causing the container to be marked unhealthy.
Use wget (built into Alpine) instead, and increase start_period to 15s.
2026-03-22 20:42:37 -04:00
MayaTheShy
b49574f39b
fix: SQLite readonly error in Docker container
...
- Add entrypoint script that ensures /data is owned by node user
before dropping privileges with su-exec
- Remove USER node from Dockerfile (entrypoint handles it)
- Change client depends_on to service_healthy so nginx waits for
the server to pass its healthcheck before starting
2026-03-22 19:15:04 -04:00
MayaTheShy
9d5fceee5c
Enhance Dockerfile to create SQLite data directory with proper ownership
2026-03-22 02:57:18 -04:00
MayaTheShy
9f322003db
Add SQLite persistence + official Minecraft item icons
...
Database (better-sqlite3):
- Persist items, furnaces, alerts, recipes, settings to SQLite
- Auto-restore last known state when server restarts or bridge disconnects
- Item count history tracking (5-min snapshots, 7-day retention)
- /api/history/:itemName endpoint for item count history
- Docker volume for database file persistence
- Graceful shutdown with DB connection cleanup
Icons:
- Replace mc-heads.net with official Minecraft game textures via CDN
- Cascading fallback: item texture -> block texture -> emoji
- In-memory URL cache to avoid redundant network requests
- Block texture suffix mapping (furnace_front, barrel_top, etc.)
- Crisp pixel-art rendering with image-rendering: pixelated
2026-03-21 18:10:44 -04:00
MayaTheShy
bbc44c3d97
Fix healthcheck: use node instead of wget, relax client dependency to service_started
2026-03-21 18:03:22 -04:00
MayaTheShy
d4d6e5e480
Fix healthcheck: use wget -qO instead of --spider (BusyBox compat)
2026-03-21 17:57:25 -04:00
MayaTheShy
a16039e920
Update HEALTHCHECK command in Dockerfile to use wget for improved reliability
2026-03-21 17:35:53 -04:00
MayaTheShy
953e8aba99
Add Dockerfile for Node.js backend setup
2026-03-21 16:42:14 -04:00