---
title: How to Deploy JetBrains Junie Projects on Vultr Using Dokploy
url: https://docs.vultr.com/how-to-deploy-jetbrains-junie-projects-on-vultr-using-dokploy
description: Build and deploy AI-generated full-stack applications using Junie, GitHub, and Dokploy with CI/CD automation.
publish_date: 2026-05-07T14:26:20.081967Z
last_updated: 2026-10-22T17:18:08.405493Z
author: Martin Sustak
header_image: https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2581/98136092-3ce2-448e-b224-10a101aecb88.png
---

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

[Junie](https://www.jetbrains.com/junie/) is an agentic AI assistant integrated with JetBrains IntelliJ IDEA that automates modern application development by generating full-stack application code from a prompt. [Dokploy](https://dokploy.com/) is an open-source platform-as-a-service that offers a stable environment for hosting Docker-based deployments, with support for database and SSL certificate management.

This guide explains how to install Intellij IDEA with Junie, generate a full-stack application, and deploy the resulting code to a Vultr instance with Dokploy.

## Prerequisites

Before you begin, you need to:

* Have an active [JetBrains account](https://account.jetbrains.com/login).
* Have a [GitHub](https://github.com/) account.
* Have access to an [Ubuntu 24.04 server](https://www.vultr.com/servers/ubuntu/) as a [non-root user with sudo privileges](https://docs.vultr.com/how-to-create-a-sudo-user-in-linux).
* [Install Dokploy and create your administrator account](https://docs.vultr.com/how-to-deploy-dokploy-self-hosted-paas-for-docker-applications).

## Set Up Junie in a JetBrains IDE

Prepare your development environment by installing the IDE (Integrated Development Environment) and the required AI plugins.

1. Download and install [IntelliJ IDEA](https://www.jetbrains.com/idea/download/).
1. Open the application and create a new project.
1. Set the project type to **Empty Project** or select your preferred framework configuration.
1. Click the Junie icon in the right toolbar.
1. Log in to your JetBrains account when prompted.

## Create an Application Using AI

Use natural language prompts to generate application code and Docker configuration files.

1. Provide a detailed description of your application in the chat prompt field. Specify your technology stack and instruct the agent to make the application compatible with Dokploy. Request a Dockerfile or a `docker-compose.yaml` file to ensure the application is ready for containerization.
1. Click **Install and Continue** to allow Junie to generate the codebase.

## Push the Project to GitHub

Initialize a local Git repository and link it to GitHub to prepare for the Dokploy deployment pipeline.

1. Open the integrated terminal by pressing :key_alt: + :key_f12: on Windows/Linux or :key_opt: + :key_f12: on macOS.
1. [Create](https://github.com/new) a new repository on GitHub via the web interface.
1. Initialize the local repository.

    ```console
    $ git init
    ```

1. Stage the generated files for commit.

    ```console
    $ git add .
    ```

1. Commit the files to your local repository.

    ```console
    $ git commit -m "Initial commit"
    ```

1. Set the default branch to main.

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

1. Add your GitHub repository as a remote. Replace `YOUR_REPOSITORY_URL` with your repository's URL.

    ```console
    $ git remote add origin YOUR_REPOSITORY_URL
    ```

1. 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. Open the Dokploy dashboard in a web browser. If you have a domain configured for your Dokploy instance, navigate to it directly. Otherwise, use your instance’s IP address on port `3000` (like `192.0.2.1:3000`).
1. Log in to the administrator account.
1. Select **Git** under **Settings** in the left sidebar.
1. Click **GitHub**, then click **Create GitHub App**.
1. 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.  
1. Click **Create Project**, enter a project name, and click **Create**.  
1. 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**.
1. Enter a name for your service and click **Create**.
1. Open your new Compose service.
1. Locate the **GitHub** configuration section.
1. Select your GitHub account and repository.
1. Set the correct **Branch**.
1. Click **Save** to apply the repository settings.
1. Open the `docker-compose.yaml` 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, and 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.

1. Commit and push the changes to your repository.

## Configure Environment Variables

Environment variables securely provide sensitive values, such as API keys or secret tokens, to the container without hardcoding them.

1. In your application’s configuration page, click the **Environment** tab.  
1. Each line defines a new environment variable as a key-value pair (`KEY=VALUE`). Environment variable examples include:  

    * `NODE_ENV`: Specifies the deployment environment, such as development or production.
    * `API_SECRET_KEY`: A secure key for accessing an API.
    * `DATABASE_URL`: The connection string for database access.
    * `NEXT_PUBLIC_ANALYTICS_ID`: A variable accessible by the browser/client code.

1. Enter your variables and click **Save**.

## Start the Deployment

Dokploy automatically fetches the source code and creates the required Docker containers upon deploying your application.

1. Switch to the **General** settings tab.  
1. Click **Deploy**, then click **Confirm**.  
1. 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**.
1. Select the name of your web service container in the **Service Name** field, for example `web`.
1. Type your custom domain into the **Host** field.
1. Enable the **HTTPS** toggle.
1. Select **Let’s Encrypt** from the **Certificate Provider** dropdown.
1. Click **Create**.
1. 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.
1. Click **Create Service** and select **Database**.
1. Select the database type that matches your application’s requirements.
1. Enter a name for the database and click **Create**.
1. Open the database service page and click **Deploy**.
1. Copy the **Internal Connection URL**.
1. Go to the **Environment** tab in your application’s configuration page.
1. Create or update the `DATABASE_URL` variable and paste the copied connection URL as the value.
1. Click **Save**.

## Configure CI/CD Pipeline

Dokploy automatically redeploys applications whenever you push new code to the GitHub repository. Verify that automatic deployments work.

### Test the CI/CD Pipeline

Make a small change to your code and push it.

1. Make a small, visible change to your application's code.  
1. Stage the modified files.

    ```console
    $ git add .
    ```

1. Commit the change.

    ```console
    $ git commit -m "Test automatic deployment"
    ```

1. Push the change to your GitHub repository.

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

1. Click the **Deployments** tab in the top navigation bar of your Dokploy application’s configuration page.  
1. Verify that a new deployment process is running at the top of the list.

## Conclusion

You have successfully generated a full-stack application using Junie, pushed it to GitHub, and deployed it to a Vultr instance using Dokploy with HTTPS and an automated CI/CD pipeline. For more information and advanced configuration options, visit the [official Dokploy documentation](https://docs.dokploy.com/docs/core).
