Backend Development 10 min read

One‑Click Remote Deployment of SpringBoot Projects Using IntelliJ IDEA and Docker

This article guides readers through setting up IntelliJ IDEA and Docker for one‑click remote deployment of a SpringBoot application, compares traditional jar deployment, explains SSH and Docker daemon configuration, provides a sample Dockerfile, and then promotes various AI‑related products and services.

Top Architect
Top Architect
Top Architect
One‑Click Remote Deployment of SpringBoot Projects Using IntelliJ IDEA and Docker

1. Introduction

The author, a senior architect, introduces a tutorial that uses IntelliJ IDEA together with Docker to achieve one‑click remote deployment of a SpringBoot project, aiming to greatly improve deployment efficiency compared with manual jar upload and execution.

2. Jar Package Deployment vs. IDEA+Docker Remote Deployment

Jar Package Deployment

Traditional deployment requires installing a Java environment on the server, uploading the built jar file, and starting the application with the java -jar command. Each update forces the developer to stop the running service, re‑upload the jar, and start the service again, which is cumbersome and makes real‑time log viewing difficult.

IDEA+Docker One‑Click Remote Deployment

After a series of configurations, the project can be deployed with a single click on the green triangle in IDEA, automatically handling the build, image creation, container start, and log streaming.

3. Configuring Remote Deployment

3.1 SSH Configuration

To connect to the remote server, configure SSH in IDEA (File → Settings → search "ssh"). It is recommended to use the Key pair authentication type, though password authentication can be used initially.

3.2 Connecting to the Docker Daemon

Configure Docker in IDEA (File → Settings → search "docker") to manage the Docker daemon on the host. The Docker daemon is the persistent service that handles container lifecycle, image management, networking, and storage.

3.3 Writing a Dockerfile

Create a Dockerfile that defines the base image, copies the built jar, sets the entry point, and exposes the required port. Example:

# Base image
FROM openjdk:17
# Copy the jar built locally (place it next to the Dockerfile)
ADD target/demo-0.0.1-SNAPSHOT.jar app.jar
# Container start command
ENTRYPOINT ["java","-jar","/app.jar","--spring.profiles.active=prod"]
# Expose port 8080
EXPOSE 8080

3.4 Creating the Remote Deployment Configuration

In IDEA, create a new Docker deployment configuration, select the previously defined SSH and Docker settings, and fill in the required fields (image name, container name, ports, etc.). Once saved, clicking the green run button will build the image, push it to the remote host, and start the container automatically.

4. Execution Result

After the configuration, the author demonstrates a successful deployment: the container starts, logs are streamed in real time, and the application responds to browser requests.

5. Promotional Content

The article then shifts to marketing material, offering a “DeepSeek” AI toolkit, a paid AI‑related product (29.9 CNY), a ChatGPT account service, and a “knowledge planet” community with various benefits such as AI tutorials, side‑business ideas, and exclusive resources. Several QR codes and links are provided for readers to join or purchase these services.

6. Additional Resources

At the end, the author shares a link to a BAT interview question collection and invites readers to follow the public account for more technical articles and open‑source project recommendations.

DockerBackend DevelopmentDevOpsSpringBootIntelliJ IDEARemote Deployment
Top Architect
Written by

Top Architect

Top Architect focuses on sharing practical architecture knowledge, covering enterprise, system, website, large‑scale distributed, and high‑availability architectures, plus architecture adjustments using internet technologies. We welcome idea‑driven, sharing‑oriented architects to exchange and learn together.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.