---
title: How to Deploy Claude Code Projects on Vultr Using Coolify
url: https://docs.vultr.com/how-to-deploy-claude-code-projects-on-vultr-using-coolify
description: Deploy Claude Code apps to Coolify using Docker, GitHub, and automated CI/CD pipelines.
publish_date: 2026-02-19T14:37:19.225000Z
last_updated: 2026-04-16T00:00:00.077250Z
author: Jivendra Sah
header_image: https://docs.vultr.com/public/doc-assets/2484/33dfac52-d569-4600-9f3b-b92c727347dc.png
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

Claude Code is an interactive CLI tool that generates full-stack applications through conversational AI assistance, producing production-ready code repositories with Docker configurations. Coolify provides a self-hosted platform-as-a-service that simplifies deployment by automating Docker orchestration, reverse proxy configuration, and TLS certificate management.

This guide covers installing Claude Code, generating a full-stack application using AI, pushing the code to a GitHub repository, and deploying it with Coolify. The guide uses VS Code, but the steps are the same when using the Claude Code from a terminal.

## Prerequisites

Before you begin, you need to:

* Have an [Anthropic account](https://www.anthropic.com) with an API key, or a [Claude subscription](https://claude.ai).
* Have a [GitHub account](https://github.com).
* [Deploy the Vultr Marketplace Application for Coolify](https://docs.vultr.com/how-to-use-vultr-s-coolify-marketplace-application#deploy-the-vultr-marketplace-application-for-coolify) with at least 2 GB RAM and 1 CPU core.
* Configure a domain name, such as `app.example.com`, to point to your server's public IP address.

## Set Up Claude Code with VS Code

Install the Claude Code extension in VS Code to generate and iterate on application code. The extension includes the Claude Code CLI, so no separate installation is required.

1. Download and install [VS Code](https://code.visualstudio.com/).

1. Open the Extensions view. Press :key_ctrl: + :key_shift: + :key_x: on Windows or Linux, or :key_cmd: + :key_shift: + :key_x: on macOS. Search for **Claude Code** and click **Install**.

1. Open a file or folder in VS Code. Click the Spark icon in the Editor Toolbar (top-right corner of the editor) to open the Claude Code panel. You are prompted to sign in on first use. Sign in using a [Claude subscription](https://claude.ai/pricing) or an [Anthropic Console](https://platform.claude.com/) account. Refer to the [Claude Code setup documentation](https://code.claude.com/docs/en/setup) for additional authentication options.

1. Open the integrated terminal. Press :key_ctrl: + `` ` `` on Windows or Linux, or :key_cmd: + `` ` `` on macOS.

1. Create a project directory.

    ```console
    $ mkdir my-claude-app
    ```

1. Navigate into the project directory.

    ```console
    $ cd my-claude-app
    ```

1. Initialize a Git repository.

    ```console
    $ git init
    ```

## Create an Application Using AI

Use Claude Code to generate a full-stack application with container support. At minimum, the application requires a Dockerfile for Coolify to build and deploy. If your application uses multiple services such as a database, you can also request a docker-compose.yml file.

1. Open the Claude Code panel in VS Code. Click the Spark icon in the Editor Toolbar, or press :key_ctrl: + :key_esc: on Windows or Linux, or :key_cmd: + :key_esc: on macOS.

1. Describe your application to Claude Code. Include your preferred technology stack, the features you need, and request a Dockerfile for containerized deployment. If your application requires multiple services, also ask for a docker-compose.yml file. Claude Code generates the source code, project structure, and container configurations based on your description.

1. Review the generated files in VS Code to verify the project structure and Docker configuration.

1. Optionally, test the application locally using the generated Docker configuration. Refer to the generated README for local setup and run instructions.

1. Stage all generated files.

    ```console
    $ git add .
    ```

1. Commit the files to your local repository.

    ```console
    $ git commit -m "Initial application generated with Claude Code"
    ```

1. Create a new repository on [GitHub](https://github.com/repo/create).

1. Add the GitHub repository as a remote. Replace `YOUR_USERNAME` and `my-claude-app` with your GitHub username and repository name.

    ```console
    $ git remote add origin https://github.com/YOUR_USERNAME/my-claude-app.git
    ```

1. Set the default branch to main.

    ```console
    $ git branch -M main
    ```

1. Push the code to your GitHub repository.

    ```console
    $ git push -u origin main
    ```

    Your application is now in a GitHub repository. The following sections deploy this repository using Coolify. Alternatively, you can integrate the repository with platforms such as Supabase for managed database and backend hosting.

## Access the Coolify Dashboard

After the marketplace instance finishes provisioning, access the Coolify web interface to complete the initial configuration.

1. Navigate to your instance's Management Page in the [Vultr Console](https://console.vultr.com/). Scroll down to **App Instructions** to find the Coolify endpoint URL. The format resembles `http://SERVER_IP:8000`.

1. Open the URL in your browser. The setup wizard prompts for an email address and password. Enter your credentials for the administrator account.

1. Coolify displays the dashboard after successful registration. This account has full control over deployments, team management, and server configuration.

## Connect GitHub Repository

Coolify integrates with GitHub to deploy applications directly from source code repositories. Configure OAuth authentication to authorize repository access.

1. Click **Sources** in the Coolify dashboard.

1. Click **Add Source** and select **GitHub**.

1. Coolify redirects to GitHub for OAuth authorization. Click **Authorize** to grant access.

1. GitHub redirects back to Coolify after successful authorization. Coolify displays your GitHub account in the Sources list.

## Create a New Project

Projects organize applications and resources within Coolify. Create a project for your Claude Code-generated application.

1. Click **Projects** in the Coolify dashboard.

1. Click **Add Project**.

1. Enter a project name, such as `my-claude-app`.

1. Click **Create**. Coolify displays the project details page.

## Deploy the Application

Configure Coolify to build and deploy your application from the GitHub repository. Coolify detects Docker Compose configurations automatically.

1. Click **Add Resource** in the project details page.

1. Select **Application** as the resource type.

1. Choose **GitHub** as the source.

1. Select your Claude Code application repository from the dropdown.

1. Enter the branch name, typically `main`.

1. Coolify analyzes the repository and detects the Docker Compose configuration. Select **Docker Compose** as the build pack for multi-container applications.

1. Click **Continue**.

1. Coolify generates a temporary domain in the format `RANDOM_ID.SERVER_IP.sslip.io` for immediate testing. Configure a custom domain later for production use.

1. Click **Save**. Coolify redirects to the application configuration page.

## Configure Environment Variables

Claude Code applications often require environment variables for API keys, database credentials, or feature flags. Coolify provides a secure interface for managing secrets.

1. Navigate to the application details page.

1. Click **Environment Variables**.

1. Click **+Add** to create a new variable.

1. Enter the variable name and value. Common variables for Claude Code applications include:

    * `DATABASE_URL` - PostgreSQL connection string, such as `postgresql://user:pass@db:5432/dbname`
    * `API_KEY` - External service API key, such as `sk_live_abc123`
    * `NODE_ENV` - Runtime environment, such as `production`
    * `REACT_APP_API_URL` - Frontend API endpoint, such as `https://api.example.com`

1. Click **Save** after adding all required variables.

## Start the Deployment

Initiate the build and deployment process to make your application live.

1. Click **Deploy** to trigger the deployment process.

1. Coolify initiates the deployment. Click **Logs** to monitor build progress.

    The deployment process includes:
    * Cloning the repository
    * Building Docker images for each service
    * Starting containers
    * Configuring Traefik routing rules
    * Requesting TLS certificates

    The entire process completes in 3-5 minutes for typical applications.

1. When deployment completes successfully, the application status changes to **Running**.

## Verify Deployment

Access your application through the temporary domain to confirm successful deployment.

1. Click **Links** in the application details page to view accessible URLs.

1. Click the Coolify-generated domain link to open your application.

1. Your application loads at `http://RANDOM_ID.SERVER_IP.sslip.io`. Verify that all features function correctly.

## Configure Custom Domain with HTTPS

Replace the temporary `sslip.io` domain with your custom domain for production use. Coolify automatically provisions Let's Encrypt TLS certificates.

1. Navigate to the application details page.

1. Click **Configuration** in the left sidebar.

1. Locate the **Domains** field and replace the Coolify-generated domain with your custom domain. Enter `https://app.example.com` in the field.

1. Enable **Automatic HTTPS** to provision Let's Encrypt certificates.

1. Click **Save**.

1. Click **Redeploy** to apply the domain configuration.

1. Coolify rebuilds the application with the new domain and requests an TLS certificate. This process takes 2-3 minutes.

1. Open your custom domain in a browser. Verify that the browser displays a padlock icon next to the URL, indicating a valid TLS certificate.

## Add a Database

Claude Code applications typically require a PostgreSQL or MySQL database for persistent data storage. Coolify provides managed database containers.

1. Return to the project details page.

1. Click **Add Resource**.

1. Select **Database**.

1. Choose **PostgreSQL** as the database type.

1. Enter a database name, such as `app-db`.

1. Click **Create**. Coolify generates secure credentials automatically.

1. Copy the connection string from the database details page.

1. Navigate to your application's Environment Variables section.

1. Add or update the `DATABASE_URL` variable with the connection string.

1. Click **Restart** to establish the database connection.

## Configure CI/CD Pipeline

Coolify provides continuous deployment capabilities through GitHub webhooks. Configure automatic deployments to rebuild and redeploy your application whenever you push changes to the repository.

### Enable Automatic Deployments

1. Navigate to the application details page.

1. Click **Settings**.

1. Enable **Automatic Deployment**.

1. Coolify displays a webhook URL. Copy the URL.

1. Open your GitHub repository settings.

1. Navigate to **Webhooks** and click **Add webhook**.

1. Paste the Coolify webhook URL in the **Payload URL** field.

1. Select **application/json** as the content type.

1. Choose **Just the push event**.

1. Click **Add webhook**.

1. GitHub sends a test payload to Coolify. Verify that the webhook shows a green checkmark.

### Test the CI/CD Pipeline

1. Make a change to your application code.

1. Stage the changes.

    ```console
    $ git add .
    ```

1. Commit the changes.

    ```console
    $ git commit -m "Update application feature"
    ```

1. Push to GitHub.

    ```console
    $ git push origin main
    ```

1. Coolify automatically detects the push event and initiates a new deployment.

1. Navigate to the application details page in Coolify.

1. Click **Deployments** to view the deployment history.

1. The most recent deployment appears at the top with a **Building** status.

1. Click **Logs** to monitor the build process in real time.

1. When the build completes successfully, the deployment status changes to **Finished** and the application restarts with the new code.

### Configure GitHub Actions for Testing

Integrate GitHub Actions to run tests before Coolify deploys your application. This ensures only passing builds reach production.

1. Create the GitHub Actions workflow directory.

    ```console
    $ mkdir -p .github/workflows
    ```

1. Open the workflow file in a text editor.

    ```console
    $ nano .github/workflows/ci.yaml
    ```

1. Add the following configuration. Adjust test commands for your application stack.

    ```yaml
    name: CI

    on:
      push:
        branches: [ main ]
      pull_request:
        branches: [ main ]

    jobs:
      test:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v4

          - name: Run tests
            run: |
              # Add your test commands here
              # Example for Node.js:
              # npm install && npm test
              # Example for Go:
              # go test ./...
              echo "Tests passed"
    ```

    Save and close the file.

1. Stage the workflow file.

    ```console
    $ git add .github/workflows/ci.yaml
    ```

1. Commit the changes.

    ```console
    $ git commit -m "Add CI workflow"
    ```

1. Push to GitHub.

    ```console
    $ git push origin main
    ```

1. GitHub Actions runs the tests automatically on every push. Coolify deploys the application only after the workflow completes successfully.

## Conclusion

You have successfully deployed a Claude Code-generated application using Vultr's Coolify Marketplace Application, configured environment variables, and secured the deployment with a custom domain and TLS certificate. For more information, refer to the [official Coolify documentation](https://coolify.io/docs).
