mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-02 10:07:29 +09:00
Move the backend into docker-compose and switch the frontend to a multi-stage Docker build. Key changes: - Added backend/.dockerignore to ignore virtualenv, pycache, env files, instance, etc. - Updated backend Flask app to safely serve index.html only if it exists and return JSON status/errors when frontend assets are absent. - Removed docker-compose.dev.yml and expanded docker-compose.yml to run both backend and frontend in Docker (backend service, healthcheck, restart/logging, new ports 5849:5000 & 3847:80, and named volumes). - Frontend changes: remove file ignores that prevented in-container builds, replace nginx-only image with a Node builder stage + nginx runtime (builds assets in Docker), and update nginx proxy to target the backend service (proxy_pass http://backend:5000). - Updated dev script (scripts/dev/dev.bat) to use plain `docker compose` commands and the new service/container names and ports. These changes enable fully containerized local/dev runs where the frontend is built inside Docker and the backend runs as a service in the compose network.
10 lines
78 B
Plaintext
10 lines
78 B
Plaintext
venv/
|
|
__pycache__/
|
|
*.pyc
|
|
*.pyo
|
|
.git
|
|
.env
|
|
*.egg-info/
|
|
.pytest_cache/
|
|
instance/
|