Docker
Learn how to run moclojer with Docker. Official images, Docker Compose, volumes, networks and production-ready deployment.
Why Use Docker?
Official Image
Repository
ghcr.io/moclojer/moclojer:latestCheck Version
docker run --rm ghcr.io/moclojer/moclojer:latest --versionQuick Start
1. Create Configuration File
2. Run with Docker
3. Test
Bind Mount vs Volume
Bind Mount (Development)
Named Volume (Production)
Docker Compose
Basic Setup
With Hot-Reload (Dev)
With Environment Variables
With Health Check
External Bodies with Global Configuration
Setup
Benefits
Testing
See Example
Multiple Environments
File Structure
docker-compose.yml
.env files
Networking
With Other Services
Custom Network
CI/CD Integration
GitHub Actions
GitLab CI
Docker Compose in CI
Production
docker-compose.prod.yml
With Nginx Reverse Proxy
Troubleshooting
Container won't start
Config file not found
Port already in use
Hot-reload not working
Volume permissions
Best Practices
✅ Do
❌ Avoid
Complete Examples
E2E Testing Setup
Next Steps
See Also
Last updated
Was this helpful?