Commit Graph
3 Commits
Author SHA1 Message Date
Bkk1234 94c253d4e3 build(compose): split Dokploy base from local preview, drop host port from base
Base docker-compose.yml now matches Dokploy's model: expose only (no published host
port), no fixed container_name, named volume hobbypj-data, traefik.docker.network
label. Local port mapping + ./data bind moved to docker-compose.override.yml with
'volumes: !override' (otherwise compose appends two mounts on /app/data and SQLite
fails with 'disk I/O error').

Verified locally: override mode serves on PORT env (8113) from ./data; base mode
(named volume, no host port) answers inside the container on 8090 and seeds 6 rows.

README: Dokploy deploy steps (service hobbypj-contents, container port = PORT,
domain www.hobbypj.com) + note not to run the dev server and the container on the
same ./data.
2026-11-23 01:08:08 +07:00
Bkk1234 5fb095b872 feat(storage): move project data to SQLite via node:sqlite
- server/db.mjs: schema (site + projects), transactional replace, WAL, VACUUM INTO backups (keep 10), JSON export, first-run seed from data/projects.json
- publish.mjs: read/write through the database, export mirror JSON for git/static/offline, validate duplicate project_id
- ui/data.js: read live data from /api/projects first, fall back to data/projects.json
- Dockerfile/compose/.env.example: DB_PATH, drop experimental sqlite warning flag
- docs: AGENTS.md + README describe the database layer and traps
2026-11-23 00:24:47 +07:00
Bkk1234 830dba58ec build: add docker-compose with PORT from env + podman/WSL override 2026-11-21 16:49:42 +07:00