Files
hobbypj-contents/.dockerignore
T
Bkk1234 d7927d4759 build(docker): keep dev database out of the image, warn when ADMIN_TOKEN is unset
- .dockerignore: exclude data/*.sqlite*, data/backups, data/projects.migrated.json so a
  fresh container always seeds from data/projects.json (the dev DB was being baked in)
- publish.mjs: log a hint that requests through a published port are not loopback, so a
  container without ADMIN_TOKEN cannot write
- .env.example / README / AGENTS.md: document the ADMIN_TOKEN requirement for containers

Verified with docker 27.4.0: image build, PORT env (8110/8112 incl. .env), seed 6 rows,
PUT with x-admin-token, VACUUM INTO backup, SQLite on a Windows bind mount
(integrity_check ok), persistence across restart, compose up with PORT + volume override.
2026-11-23 00:39:44 +07:00

20 lines
411 B
Plaintext

.git
.gitignore
.gitattributes
node_modules
*.log
.env
.env.*
Dockerfile
docker-compose*.yml
.dockerignore
README.md
AGENTS.md
DESIGN.md
# ฐานข้อมูล/สำเนาสำรองของเครื่อง dev — ไม่ต้องฝังใน image (ให้ seed จาก projects.json)
data/*.sqlite
data/*.sqlite-wal
data/*.sqlite-shm
data/backups
data/projects.migrated.json