DockHosting Docs
Deploying

Deploying overview

How DockHosting builds and runs your app, whatever stack it's written in.

Every deploy — regardless of framework — goes through the same four stages.

Detect

DockHosting reads your repository. If there's a Dockerfile at the root, it's used as-is — nothing else matters. Otherwise, DockHosting looks for the markers of a known framework (a package.json, a composer.json with Laravel in it, a go.mod, and so on) and picks a matching build.

Build

The image builds with layer caching, so a one-line change in your code ships in seconds rather than rebuilding everything from scratch.

Run

The new container starts on your project's private network, with persistent storage mounted, and must pass a health check before it's considered ready — see Zero-downtime deploys.

Live

A free HTTPS subdomain is available immediately at your-app.dockhosting.dev. Add your own domain whenever you're ready — see Domains & SSL.

Framework guides

Deploying something not listed here? If it runs in a container, bring a Dockerfile and follow the Docker guide — that path works for anything.

Redeploying

dock deploy (or a push, if you've connected a Git repository) triggers a new build every time. The new version builds and health-checks itself before traffic ever reaches it, and the previous version is kept around for a quick rollback — see Zero-downtime deploys.

On this page