1.4 KiB
1.4 KiB
Docker Infrastructure Audit Findings
Applies when: implementing any Docker fixes, setting up CI/CD, preparing for production deployment, or reviewing PRs that touch Dockerfiles or compose files.
- Backend
.dockerignoreis missing.envexclusion -- security risk for futureCOPY . .changes. - Backend
.gitignoreis missing.envexclusion -- latent secret leak risk. - MinIO image is unpinned (
minio/miniowith no tag) -- all others are pinned. - No resource limits on any service. Remotion needs 4GB+ for Chromium/FFmpeg renders.
- Health checks exist only on
dbandredis. Missing onminio,api,worker,remotion. - API health check requires a
GET /api/health/endpoint (may not exist yet -- needs backend team). - No restart policies on any service.
- Both Dockerfiles run as root -- non-root user should be added to
prodstages (dev stage has bind-mount permission complications). build-essentialis in thebasestage, bloating the prod image by ~200MB. Move todepsstage only.- Remotion Dockerfile missing BuildKit apt cache mounts (backend has them, remotion does not).
- Environment variables duplicated between
apiandworker(14 identical vars) -- usex-backend-envYAML anchor. - Worker is missing
JWT_SECRET_KEYthat API has. - No CI/CD pipeline exists at all -- zero automation.
- No frontend Dockerfile -- needs
output: 'standalone'in next.config.mjs first.