-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hi @steevepay,
Thanks for creating this helpful GitLab self-hosting solution! I noticed a couple of configuration patterns that could improve production deployment stability.
Configuration Findings
P1: Image Version Control
Location: docker-compose.yml:5
image: 'gitlab/gitlab-ce:latest'Risk: Using the latest tag can introduce unexpected changes and makes rollbacks difficult in production environments.
Suggested Fix: Pin to specific version for stability:
image: 'gitlab/gitlab-ce:16.3.0-ce.0' # Current stableP2: Restart Policy Conflict
Location: Lines 7 & 13
restart: always
# ...
restart: unless-stoppedRisk: Duplicate restart policies may cause unexpected behavior.
Suggested Fix: Use single policy:
restart: unless-stoppedAdditional Improvements
- Health Checks: Add GitLab service health monitoring
- Resource Limits: Prevent memory/CPU exhaustion
These changes would make the setup more reliable for production deployments while maintaining the same functionality.
If you're interested in production-grade configuration optimization, feel free to reach out: youming@flowspec.org
Best regards,
Configuration Security Review Team