feat: add Docker Compose developer environment with Makefile shortcuts (M4)
- Root docker-compose.yml: backend (python:3.11-slim) + frontend (multi-stage node build -> nginx:alpine) on the newzy-network bridge network, frontend waits for the backend health check - Persistent SQLite via bind mount ./data/db -> /app/data/db - .env / .env.example documenting DATABASE_URL, DEBUG, BACKEND_CORS_ORIGINS and FRONTEND_API_URL - Makefile: dev, stop, restart, build, logs, status, backend-start, frontend-start, test, e2e, shell-backend, shell-frontend, clean - data/.gitignore keeps the data/ structure in git while excluding the database; root .gitignore drops the overly broad data/ rule and adds docker-compose.override.yml - backend: .gitignore covers .env.*, Dockerfile sets unbuffered python and pre-creates the db volume dir; frontend: new .dockerignore - README: full Docker setup docs (prerequisites, quick start, services, ports, network/storage, env vars, Makefile reference, troubleshooting)
This commit is contained in:
1 parent
9144411e0f
commit
ed7b30438e
11 files changed
+653
-15
No files matched your search
@@ -0,0 +1,6 @@
|
||||
# Exclude everything under data/ from version control (SQLite database,
|
||||
# uploads, ...) except the keep file below, so the directory structure
|
||||
# (data/db/) survives a fresh clone.
|
||||
*
|
||||
!.gitignore
|
||||
!keep_files.txt
|
||||
@@ -0,0 +1,4 @@
|
||||
# This file is tracked by git so the data/ directory structure (data/db/)
|
||||
# is preserved in fresh clones. Everything else under data/ — the SQLite
|
||||
# database (data/db/newzy.db), uploads, and other local state — is ignored
|
||||
# by data/.gitignore and recreated at runtime.
|
||||
Reference in new issue
Block a user