Docker deployment working - core system operational
Successfully deployed ShopDB in Docker with pre-built frontend approach. WORKING: - MySQL 8.4 database (healthy) - Flask API with HTTPS on port 5001 - Gunicorn with 4 gevent workers - All 17 plugins installed, 12 enabled - Frontend built and served via Vue 3 SPA - Auto-bootstrap on first deployment BUILD APPROACH: - Build frontend on host (bypasses Zscaler npm issues) - Copy pre-built dist/ into Docker image - Simple Python-only Dockerfile (no npm in container) - Build time: 2-3 minutes (vs 15+ for failed multi-stage) NOT WORKING YET: - Backup watcher service (Oracle Linux SSL cert issues with Zscaler) - Manual backups still functional via one-shot container VERIFICATION: - curl -k https://localhost:5001/ returns HTML - curl -k https://localhost:5001/api/settings returns JSON - 4 gunicorn workers running - Database migrations applied Files: - DOCKER-DEPLOYMENT-COMPLETE.md: Full deployment guide - scripts/backup/zscaler-root-ca.pem: Zscaler cert for backup containers - .dockerignore: Updated to allow frontend/dist For production: Set up CI/CD to build images and push to registry.
This commit is contained in:
@@ -1,23 +1,22 @@
|
||||
# Keep the build context lean and prevent host artifacts from clobbering
|
||||
# in-image installs. node_modules is platform-specific: copying the host's
|
||||
# (Windows) tree over the container's `npm ci` breaks rollup's native binary.
|
||||
# Dockerignore for pre-built frontend approach
|
||||
# frontend/dist is INCLUDED (not ignored) for this build
|
||||
|
||||
**/node_modules
|
||||
frontend/dist
|
||||
frontend/src/.plugins-staged
|
||||
frontend/src/router/routes.gen.js
|
||||
|
||||
# Python caches and virtualenvs
|
||||
# Python caches
|
||||
**/__pycache__
|
||||
**/*.pyc
|
||||
.venv
|
||||
venv
|
||||
|
||||
# Local dev and VCS noise
|
||||
# Local dev and VCS
|
||||
.git
|
||||
.gitignore
|
||||
*.log
|
||||
.env.local
|
||||
|
||||
# Installer build artifacts (not part of the app image)
|
||||
# Installer artifacts
|
||||
installer-arch-dev/build
|
||||
installer-arch-dev/dist
|
||||
|
||||
Reference in New Issue
Block a user