mirror of
https://github.com/andwati/andwati.com.git
synced 2026-12-03 05:38:47 +00:00
Add Docker setup for running Strapi locally
apps/cms/Dockerfile.dev + root docker-compose.yml give a one-command way to run the CMS in a container for testing (docker compose up cms), with the shared content/ directory mounted so it matches the host dev setup. apps/cms/Dockerfile is a production multi-stage build for later Dokploy deployment. Uses node:24-bookworm-slim to match the local Node version and get glibc prebuilt binaries for better-sqlite3 without needing a native build toolchain in the final image. Verified: both images build, the dev container boots Strapi successfully, admin panel and API routes are reachable, and the mounted content/ volume resolves at the same relative path the future sync provider will expect.
This commit is contained in:
@@ -16,11 +16,17 @@ approved plan for full rationale on each decision referenced below.
|
||||
end-to-end in-browser (`pnpm --filter site dev`)
|
||||
- [x] CLAUDE.md updated: no agent self-attribution in commits/PRs, commit
|
||||
regularly after each working step
|
||||
- [x] Strapi content-type definitions matching the `content/` schema exactly
|
||||
(writings, portfolio, bookshelf, blogs) — verified boots and registers
|
||||
all four REST routes
|
||||
- [x] `apps/cms/Dockerfile.dev` + root `docker-compose.yml` for running
|
||||
Strapi locally in a container (node:24-bookworm-slim, matches local
|
||||
Node version); `apps/cms/Dockerfile` production multi-stage build for
|
||||
later Dokploy deployment. Verified: builds, boots, admin panel and API
|
||||
reachable, shared `content/` volume mounted at the right relative path
|
||||
|
||||
## Content pipeline
|
||||
|
||||
- [ ] Strapi content-type definitions matching the `content/` schema exactly
|
||||
(writings, portfolio, bookshelf, blogs)
|
||||
- [ ] Strapi custom provider/lifecycle hooks that read + write the same
|
||||
Markdown files in `content/` (Strapi's DB stays a disposable cache)
|
||||
- [ ] Verify round-trip: edit in Strapi admin → file on disk updates, and
|
||||
|
||||
Reference in New Issue
Block a user