Quick Deploy
Production Dockerfile
The production build uses a multi-stage Dockerfile:-trimpath— removes filesystem paths from binary for reproducibility-ldflags="-s -w"— strips debug symbols for smaller binary- Distroless base — minimal attack surface (no shell, no package manager)
Production Checklist
Enable SSL
Set
DB_SSLMODE=require for database connections.
Set SESSION_COOKIE_SECURE=true (auto-derived if BASE_URL uses HTTPS).Resource Limits
The production Docker Compose sets resource constraints:| Service | CPU | Memory |
|---|---|---|
app | Limited | Limited |
web | Limited | Limited |
timescaledb | Limited | Limited |
redis | Limited | Limited |
docker-compose.yml based on your server capacity.