
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 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.
Before you begin, you need to:
Prepare your development environment by installing the IDE (Integrated Development Environment) and the required AI plugins.
Use natural language prompts to generate application code and Docker configuration files.
docker-compose.yaml file to ensure the application is ready for containerization.Initialize a local Git repository and link it to GitHub to prepare for the Dokploy deployment pipeline.
Open the integrated terminal by pressing Alt + F12 on Windows/Linux or Opt + F12 on macOS.
Create a new repository on GitHub via the web interface.
Initialize the local repository.
Stage the generated files for commit.
Commit the files to your local repository.
Set the default branch to main.
Add your GitHub repository as a remote. Replace YOUR_REPOSITORY_URL with your repository's URL.
Push the source code to GitHub.
Connect your GitHub account with Dokploy to grant it access to pull code from your repositories.
3000 (like 192.0.2.1:3000).Projects in Dokploy isolate different application environments.
Deploy the application by specifying the source repository and creating a new Docker Compose service.
On your project page, click Create Service and select Compose.
Enter a name for your service and click Create.
Open your new Compose service.
Locate the GitHub configuration section.
Select your GitHub account and repository.
Set the correct Branch.
Click Save to apply the repository settings.
Open the docker-compose.yaml file in your local repository and make the following two adjustments to the web service before deploying:
ports: mappings. Dokploy routes traffic through Traefik, and the web service does not need to bind a port on the host.dokploy-network to the service's networks so Traefik can reach the container: Replace web with the actual service name from your compose file.
Commit and push the changes to your repository.
Environment variables securely provide sensitive values, such as API keys or secret tokens, to the container without hardcoding them.
In your application’s configuration page, click the Environment tab.
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.Enter your variables and click Save.
Dokploy automatically fetches the source code and creates the required Docker containers upon deploying your application.
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.
web.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.
DATABASE_URL variable and paste the copied connection URL as the value.Dokploy automatically redeploys applications whenever you push new code to the GitHub repository. Verify that automatic deployments work.
Make a small change to your code and push it.
Make a small, visible change to your application's code.
Stage the modified files.
Commit the change.
Push the change to your GitHub repository.
Click the Deployments tab in the top navigation bar of your Dokploy application’s configuration page.
Verify that a new deployment process is running at the top of the list.
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.
0 Comments
Be the first to comment and share your perspective with the community.