Infrastructure & Deployment
Dokploy & Cloud VPS Deployment
Continuous deployment using Dokploy, Git push triggers, Traefik SSL automation, and env variable injection.
Dokploy & Cloud VPS Deployment
IMPLEMENTED
The production infrastructure is orchestrated using Dokploy, a self-hosted PaaS alternative to Coolify/Heroku running on a Debian Linux VPS.
1. Dokploy Application Configuration
- Git Repository: Connects to
https://github.com/Taraldinn/sheba-erp(branch:main). - Build Type:
Dockerfile(pointing to rootDockerfile). - Domain Mapping:
api.shebafi.xyz-> Port8000(Backend API)app.shebafi.xyz-> Port3000(Frontend Dashboard)docs.shebafi.xyz-> Port3001(Fumadocs Portal)*.shebafi.xyz-> Port8000(Wildcard tenant domain routing)
- Automated SSL: Dokploy’s built-in Traefik reverse proxy issues and auto-renews Let's Encrypt TLS certificates.
2. Production Health Checks & Zero-Downtime Rollouts
- Dokploy polls the
/healthz/readiness probe. - When a new Git commit is pushed to
main:- Dokploy builds the new Docker image.
- Runs database migrations automatically via
RUN_MIGRATIONS=trueinentrypoint.sh. - Waits for the container healthcheck to pass.
- Flips the Traefik proxy routes to the new container.
- Terminates the old container without dropping active HTTP connections.