How to Deploy GitHub Copilot Projects on Vultr Using Dokploy

Updated on 02 April, 2026
Create app with GitHub Copilot, push to GitHub, and deploy on Dokploy with HTTPS.
How to Deploy GitHub Copilot Projects on Vultr Using Dokploy header image

GitHub Copilot is an AI-powered developer tool integrated into VS Code that uses natural language prompts to generate code and automate tasks such as application creation, feature implementation, and environment configuration. Dokploy is an open-source platform-as-a-service that automates infrastructure provisioning and Docker orchestration for self-hosted environments.

This guide explains how to create a full-stack application using GitHub Copilot, export the source code to GitHub, and deploy it on Vultr using Dokploy.

Prerequisites

Create an Application Using AI

Prompt the GitHub Copilot agent to generate the project files and push the codebase to a remote GitHub repository.

  1. Create a new empty directory and open it in VS Code.

  2. Open the Chat View by pressing Ctrl + Alt + I.

  3. In the prompt field, describe your application and request the agent to make it compatible with Dokploy. Specify all required features and the preferred service stack. Ask for a docker-compose.yml if the application involves multiple services.

  4. Wait for the GitHub Copilot agent to generate the application files.

  5. Optionally, test the application locally. The generated README.md file contains steps to run the application on your machine.

  6. Provision a new, empty repository on GitHub via the web interface.

  7. Initialize the local Git repository.

    console
    $ git init
    
  8. Stage the generated files for commit.

    console
    $ git add .
    
  9. Commit the files to the local repository.

    console
    $ git commit -m "Initial commit"
    
  10. Set the default branch to main.

    console
    $ git branch -M main
    
  11. Add your GitHub repository as a remote. Replace YOUR_REPOSITORY_URL with your repository's URL.

    console
    $ git remote add origin YOUR_REPOSITORY_URL
    
  12. Push the source code to GitHub.

    console
    $ git push -u origin main
    

Connect GitHub Repository

Connect your GitHub account with Dokploy to grant it access to pull code from your repositories.

  1. Navigate to your instance's IP address on port 3000 (like 192.0.2.1:3000) in a web browser to open the Dokploy dashboard.
  2. Log in to the administrator account.
  3. Select Git under Settings in the left sidebar.
  4. Click GitHub, then click Create GitHub App.
  5. Follow the GitHub OAuth prompts to authorize the app and select the repositories Dokploy can access.

Create a New Project

Projects in Dokploy isolate different application environments.

  1. Click Projects in the left sidebar.
  2. Click Create Project, enter a project name, and click Create.
  3. Click on the newly created project to open it.

Connect the Code Repository

Deploy the application by specifying the source repository and creating a new Docker Compose service.

  1. On your project page, click Create Service and select Compose.

  2. Enter a name for your service and click Create.

  3. Open your new Compose service.

  4. Locate the Github configuration section.

  5. Select your GitHub account and repository.

  6. Set the correct Branch.

  7. Click Save to apply the repository settings.

  8. Open the docker-compose.yml file in your local repository and make the following two adjustments to the web service before deploying:

    • Remove any ports: mappings. Dokploy routes traffic through Traefik, so the web service does not need to bind a port on the host.
    • Add dokploy-network to the service's networks so Traefik can reach the container:
    yaml
    services:
      web:
        networks:
          - default
          - dokploy-network
    
    networks:
      dokploy-network:
        external: true
    

    Replace web with the actual service name from your compose file.

  9. Commit and push the changes to your repository.

Start the Deployment

Dokploy fetches the source code and builds the Docker containers when you trigger a deployment. If your application requires environment variables such as API keys or database credentials, set them under the Environment tab before deploying.

  1. Switch to the General settings tab.
  2. Click Deploy, then click Confirm.
  3. Click View to monitor the real-time deployment logs.

Verify Deployment

Connect your domain for a production-ready URL and encrypted traffic. Dokploy provisions a Let's Encrypt SSL certificate through Traefik when you enable HTTPS.

  1. Navigate to the Domains tab and click Add Domain.
  2. Select the name of your web service container in the Service Name field, for example web.
  3. Type your custom domain into the Host field.
  4. Enable the HTTPS toggle.
  5. Select Let's Encrypt from the Certificate Provider dropdown.
  6. Click Create.
  7. Click Validate DNS to verify your domain's DNS configuration.

Add a Database

Dokploy supports deploying managed database containers within the same project. The internal connection URL connects the database directly to your application over Docker's internal network without exposing it to the internet.

  1. Navigate to your project page.
  2. Click Create Service and select Database.
  3. Select the database type that matches your application's requirements.
  4. Enter a name for the database and click Create.
  5. Open the database service page and click Deploy.
  6. Copy the Internal Connection URL.
  7. Go to the Environment tab in your application's configuration page.
  8. Create or update the DATABASE_URL variable and paste the copied connection URL as the value.
  9. Click Save.

Conclusion

You have successfully created an application using GitHub Copilot, exported the generated source code to GitHub, and deployed it to a Vultr instance using Dokploy. For more information and advanced configuration options, refer to the official Dokploy documentation.

Tags:

Comments