Skip to content

Deploy Dockerfile

What You’ll Need

  • A server with a public IP address, SSH access, and a fresh installation of Ubuntu 22.04. Not sure which cloud provider to use? Try DigitalOcean, Vultr, or Hetzner.
  • A project with a Dockerfile in the root folder
  • (Optional) A custom domain

Deployment Steps

  • Create a server on your cloud provider
  • Deploy the project from a local folder or GitHub/Bitbucket

What You’ll Get

  • A deployed project/app without vendor lock-in
  • HTTPS with an auto-generated or custom domain
  • A WAF with the default ruleset recommended by OWASP
  • Rate limiting
  • CI/CD if you deploy from GitHub or Bitbucket

Deploying a Dockerfile-Based Project

Deploy from a Local Folder

You can deploy projects with a Dockerfile directly from a local folder on your development machine using TurboCloud:

  • If the project is a Git repository, TurboCloud uploads files tracked by Git (you can check which files will be uploaded using git ls-files --recurse-submodules).

  • If you’re not using Git, all files in the project folder will be uploaded.

Let’s deploy:

  1. Run the command below in the root of your project (replace server_ip with your server’s actual IP and 3000 with the correct port, matching your Dockerfile):

    Terminal window
    curl https://turbocloud.dev/deploy | bash -s -- -i server_ip -p 3000

    To use a custom domain, add the -d parameter (make sure your domain’s A record points to your server’s IP address):

    Terminal window
    curl https://turbocloud.dev/deploy | bash -s -- -i server_ip -p 3000 -d yourdomain.com
  2. After deployment, you’ll receive an auto-generated URL to access your site. If you specified your own domain, you can use that instead.

  3. (Optional) Visit console.turbocloud.dev to manage and monitor deployments. You can add custom domains, configure load balancing, and more.

  4. To redeploy, just run the same command again:

    Terminal window
    curl https://turbocloud.dev/deploy | bash -s -- -i server_ip

Deploy from GitHub / Bitbucket

  1. SSH into a server running Ubuntu 22.04 with a public IP address, and install TurboCloud (replace server_ip with your server’s actual IP; installation takes about a minute):

    Terminal window
    ssh root@server_ip
    curl https://turbocloud.dev/setup | bash -s
  2. After installation, visit console.turbocloud.dev to add and deploy your project. In the port field, enter 3000 (or whichever port your app uses, as defined in the Dockerfile). You can deploy projects, add custom domains, set up load balancing, and more.