devops: add docker-compose.prod.yml overlay for production deployment #239
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Now that the backend uses a proper multi-stage Docker build (PR #238), the next natural step is separating dev and production configuration via a Compose overlay pattern.
The current
docker-compose.ymlserves both dev and production. Environment-specific differences (Mailpit vs real SMTP, MinIO vs Hetzner S3, exposed debug ports, bind mounts) are currently mixed into a single file.Goal
Add a
docker-compose.prod.ymloverlay that overrides production-specific settings:What the overlay should cover
"${PORT_DB}:5432"port binding — database should not be reachable from outside the Docker networkrestart: alwaysinstead ofrestart: unless-stoppedfor critical servicesSPRING_PROFILES_ACTIVE: prodinstead ofdev,e2e)References
docker-compose.prod.ymloverlay would allow environment-specific overrides without duplicating the base file"