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:
2026-08-30 18:36:31 +03:00
parent 9d6d78b31f
commit 27efeb8b26
5 changed files with 108 additions and 3 deletions
+5 -1
View File
@@ -1,7 +1,11 @@
public
/public
node_modules
.git
manimations/*.*
/zola
/zola-v*.tar.gz
/artifacts
dist
.strapi
.tmp
build