Dokploy is an open-source, self-hostable platform as a service (PaaS). Install it on your server and its web dashboard lets you deploy applications, manage databases, configure domains, and check service status. It offers a deployment experience similar to Heroku or Vercel while you retain control of the servers and application data. Dokploy project overview
Two questions help explain it: How does it turn code into an image, and how does it turn that image into a reachable service? The former involves Nixpacks, Railpack, Docker Buildx, and BuildKit. The latter involves Docker, Docker Swarm, Docker Compose, and Traefik. ClickHouse can provide an analytics database for the application, while Uptime Kuma can check whether the deployed service is online.
This article describes the components and their relationships as implemented in Dokploy on October 23, 2025.
What can Dokploy do for us?
Manually deploying a web application usually involves pulling code, installing dependencies, building an image, starting a container, setting up a reverse proxy, and checking logs if an update fails. Dokploy organizes these operations into a management interface for projects and services.
It deploys applications in multiple languages, manages databases including PostgreSQL, MySQL, MariaDB, MongoDB, and Redis, coordinates multiple services with Docker Compose, and offers database backups, monitoring, and remote server management. Templates are available for deploying existing open-source software. Dokploy feature list
Connect a Git repository and enable automatic deployment, and a code push can trigger a deployment via webhook. An existing CI/CD workflow can also call the Dokploy API. In daily releases, you can push code and inspect the deployment result instead of logging into a server to run a series of commands. Automatic deployment documentation
With self-hosting, server capacity, system maintenance, and data recovery remain your responsibility. Dokploy primarily reduces repetitive deployment work.
Dokploy's own technology stack
The technologies used to build the dashboard and those used by the applications it deploys are independent. Dokploy uses TypeScript and Node.js. Your application can use a different language.
| Layer | Main technologies | Responsibility |
|---|---|---|
| Management interface | Next.js, React, TypeScript | Pages for managing projects, applications, databases, and servers |
| UI components and styling | Tailwind CSS, Radix UI | Forms, dialogs, navigation, and other interactive components |
| Server and API | Node.js, tRPC, Zod | Perform management operations, expose APIs, and validate input |
| Platform data | PostgreSQL, Drizzle ORM | Store dashboard configuration and business data, with database access through an ORM |
| Deployment queue | BullMQ, Redis | Delegate deployments to background jobs |
| Docker and remote connections | dockerode, Docker CLI, SSH | Call the Docker API, run build commands, and operate remote servers |
See the historical application dependencies, database connection code, and deployment queue implementation.
Outside the panel sits the infrastructure that runs applications:
| Component | Role in Dokploy |
|---|---|
| Docker Engine | Manages images, containers, networks, and volumes |
| Docker Swarm | Creates, updates, and schedules Application services in the cluster |
| Docker Compose | Deploys related services according to their Compose configuration |
| Traefik | Routes requests by domain and handles reverse proxying, load balancing, and HTTPS ingress |
| Nixpacks, Railpack, Dockerfile, Buildpacks | Offer different ways to build application images |
Application deployment creates or updates a Docker Service. Compose services have two distinct execution paths, docker compose up and docker stack deploy. It's worth distinguishing an ordinary Compose deployment from a Swarm Stack. Application implementation, Compose implementation
Traefik routes external requests to the correct container port. When configuring a domain, Dokploy generates the corresponding routes and supports configuring HTTPS and certificates. Domain management documentation
How ClickHouse relates to Dokploy
ClickHouse can be deployed as a service on Dokploy or serve as a dependency of a deployed application. It plays no role in building images.
ClickHouse is a column-oriented SQL database for online analytical processing (OLAP). It is well suited to filtering and aggregating large volumes of events and access records. A web analytics system might write visit events to ClickHouse and then query daily traffic, traffic sources, and popular pages. ClickHouse introduction
There are three relationships to distinguish in the Dokploy ecosystem.
Storage for the Dokploy dashboard
The dashboard uses Drizzle ORM to connect to PostgreSQL, with Redis backing the deployment job queue. These belong to the deployment platform itself. Database connection code, deployment queue code
The repository's standalone monitoring service at the same point in time was written in Go. Its database implementation stored metrics in a SQLite file named monitoring.db. ClickHouse's widespread use for monitoring analytics does not imply that Dokploy's built-in monitoring depends on it. Monitoring service overview, monitoring database implementation
Deploying ClickHouse with Dokploy
If your application needs ClickHouse, define a ClickHouse service in Docker Compose with its image, persistent volume, account, and network, and let Dokploy deploy it. Dokploy manages deployment, and ClickHouse processes the application's data.
If the Compose service uses the prebuilt clickhouse/clickhouse-server image directly, Docker only needs to pull the image and start the container. Image building comes into play if you need a custom image built from a Dockerfile.
Deploying an existing application that depends on ClickHouse
By the article date, Dokploy's official template repository already included several examples:
| Application template | Where ClickHouse fits |
|---|---|
| Plausible | Compose uses a ClickHouse image for plausible_events_db and a separate PostgreSQL service. |
| OpenPanel | The op-ch service runs ClickHouse, and the application connects through CLICKHOUSE_URL. |
| SigNoz | The telemetry collector configuration writes traces, metrics, and logs to ClickHouse. |
See the historical Plausible, OpenPanel, and SigNoz configurations.
If you spot a ClickHouse container on a server managed by Dokploy, check which project and Compose service owns it. It could belong to a recently deployed analytics or observability application. Manage its volumes, backups, and upgrades according to that application's requirements.
What is Uptime Kuma and how does it relate to Dokploy?
Uptime Kuma is an open-source, self-hostable availability monitor. After you configure a target, it periodically checks whether a site or endpoint is reachable. It also supports TCP, ping, DNS, page keywords, and Docker container checks. It provides status pages and can send notifications through email, Telegram, Discord, and other channels. Uptime Kuma overview
Dokploy deploys and manages services. Uptime Kuma checks whether they respond as expected. You can use them together. Uptime Kuma can also monitor services deployed without Dokploy.
Deploying it as an application on Dokploy
The official template collection in October 2025 already included Uptime Kuma. Its template used the louislam/uptime-kuma:1.23.15 image, mounted a volume at /app/data, and forwarded the domain to container port 3001. It deployed an existing image via Compose, so there was no need to build Uptime Kuma with Railpack first. Historical Compose template, domain configuration
After deployment, open Uptime Kuma to set the URLs, check intervals, and notification channels. You might add an application's home page and dedicated /health endpoint, for instance. Installing the tool is only the first step. The checks still have to be configured for the services you actually run.
Complementing Dokploy resource monitoring
The two types of monitoring answer different questions:
| Perspective | Question |
|---|---|
| Dokploy server and container resource monitoring | What is happening to CPU, memory, disk, and network utilization? |
| Uptime Kuma HTTP and other probes | Can the monitoring node connect to the target, and does the response satisfy the configured conditions? |
Dokploy's metric definitions are in its monitoring service documentation. Healthy resource metrics alone do not establish availability. A container can still be running while users receive 502 errors because the reverse proxy has the wrong port. An HTTP check against the public domain helps catch that kind of problem.
Uptime Kuma's results also depend on what you probe. A reachable TCP port does not guarantee that login or checkout works. To verify an application workflow, use a health endpoint that covers the relevant dependencies.
To detect loss of the whole application server, put the monitor on another host. Running both on one machine is convenient initially, but a host failure will affect the application and monitoring process together.
The toolchain from source code to image
The application build stage is where Dokploy principally integrates with moby/buildkit. Several names are easy to confuse:
- Dokploy organizes deployment and decides what code to pull, which builder to use, and where to deploy the service.
- Railpack and Nixpacks analyze a project to determine the language environment, dependency installation, compilation, and startup behavior.
- A Dockerfile gives explicit image-building instructions written by the developer.
- Buildx is Docker's build client plugin for selecting and operating builders.
- BuildKit executes the build steps, manages the cache, and produces the image.
Docker defines a builder as an instance of a BuildKit service capable of executing builds. Buildx interacts with those instances through different drivers. Docker builders documentation
The diagram shows the Railpack and Dockerfile paths for building an Application. Both produce an image that runs as a service. The dashed lines show users accessing the deployed service and Uptime Kuma probing it.
flowchart TD
Source[Git 仓库] --> Dokploy[Dokploy 调度部署]
Dokploy --> Railpack[Railpack 分析项目]
Railpack --> Plan[生成构建计划]
Plan --> Buildx[Buildx 指定 Railpack frontend]
Buildx --> BuildKit[BuildKit 执行构建]
Dokploy --> Dockerfile[项目 Dockerfile]
Dockerfile --> DockerBuild[Docker build]
DockerBuild --> BuildKit
BuildKit --> Image[应用镜像]
Image --> Service[Docker Swarm 应用服务]
Visitor[用户浏览器] -.-> Traefik[Traefik 域名与 HTTPS 入口]
UptimeKuma[Uptime Kuma 可用性探测] -.-> Traefik
Traefik -.-> Service
The Dockerfile path
If the project already provides a Dockerfile, specify its location, build context, and target stage in Dokploy. The October 2025 implementation called docker build, passing build arguments and other options according to the configuration. Dockerfile build code
In a modern Linux Docker environment with BuildKit enabled, BuildKit performs that build. The specific builder depends on Docker configuration. Calling Docker alone does not guarantee identical backends across versions and environments. BuildKit documentation
The Nixpacks path
Nixpacks analyzes the source directory, generates an installation, build, and startup plan, and uses Nix or Apt to supply the required language and system dependencies. It then generates a Dockerfile and builds the image through Docker BuildKit. Projects that fit its conventions can dispense with a handwritten Dockerfile. How Nixpacks works
Nixpacks uses BuildKit in its build chain too. BuildKit is not exclusive to Railpack.
The Railpack path
Railpack succeeds Nixpacks. It aims to build images from source with little configuration. Its core analyzes the application and generates a build plan. Its BuildKit integration then translates the plan to LLB, the low-level build graph executed by BuildKit. Railpack project overview, Railpack architecture
In the Dokploy implementation at the article date, this path first ran railpack prepare to generate a plan. It then ran docker buildx build with the Railpack frontend to build the image. Railpack analyzed the project, and BuildKit executed the build. Railpack integration code
Why moby/buildkit appears in the logs
moby/buildkit names both the BuildKit project repository and its container image. Buildx's docker-container driver starts a dedicated BuildKit container, using the moby/buildkit image by default. Seeing moby/buildkit:buildx-stable-1 in a build log usually means the build service is being prepared. Docker container driver documentation
Dokploy's Railpack integration used exactly that driver at the time. This container runs the build engine. The application container ultimately serves the business workload.
BuildKit capabilities and what using them requires
Build caching
BuildKit can reuse unchanged build results. In Node.js, copying package.json and the lockfile, installing dependencies, and only then copying application code reduces unnecessary reinstalls when only application code changes. Cache mounts can reuse a package manager cache. Sharing caches across build environments requires configuring imports and exports. Docker cache optimization documentation
Underlying support does not mean Dokploy will retain or hit the cache on every deployment. The historical Railpack integration deleted the builder it had created when a build finished, and its code did not configure external cache imports or exports. That path did not provide persistent cross-deployment cache by default. Historical Railpack implementation
Docker's docker-container driver can store state in a volume, but retaining it when removing the builder requires an appropriate setting such as --keep-state. When investigating build speed, check both whether the steps are cacheable and whether builder state survives. Cache persistence
Parallel execution
BuildKit can run independent steps in its build graph concurrently and skip stages the target does not need. If compilation depends on dependency installation, those steps must still run in sequence. Actual speedup depends on dependencies, cache hit rate, and the server's CPU, memory, disk, and network. How BuildKit works
Build-time secrets
BuildKit supports passing credentials temporarily through secret mounts when pulling private dependencies. This is better suited to build secrets than putting a token in a Dockerfile ARG, ENV, or ordinary file. Build commands must still avoid logging the secret or copying it to output files. Docker build secrets
The higher-level tool must integrate this capability correctly. Dokploy's Railpack path at the time passed --secret, while its Dockerfile path primarily passed --build-arg. One should not assume every build method exposed the same secret configuration. Railpack implementation, Dockerfile implementation
Choosing a deployment method in Dokploy
Start with what the project already provides:
| Project situation | Method to consider |
|---|---|
| Has a tested Dockerfile | Use the Dockerfile and keep maintaining the explicit build process. |
| A conventional language project that should need little container configuration | Try Nixpacks or Railpack if supported, and inspect the generated build and startup commands. |
| Depends on Heroku or Paketo Buildpacks | Use the corresponding Buildpack type. |
| Has an existing image | Deploy the image and leave builds in the existing CI system. |
| Has several interdependent services, such as an application plus ClickHouse | Describe their relationship with Docker Compose or an existing template. |
Dokploy's build types also include Static. Heroku and Paketo paths use the pack tool. These are other build methods with their own internals. Build types, Heroku builder, Paketo builder
A basic Git-based deployment of a web application goes as follows:
- Create a project and application in Dokploy, connect the repository, and select the branch and project directory.
- Select a build type and verify that dependency installation, build, and startup match the project's requirements.
- Configure the required environment variables, volumes, and database connections, distinguishing build-time arguments from runtime configuration.
- Deploy and inspect the build logs first, then the container startup logs.
- Add the domain, enter the container port on which the application actually listens, configure HTTPS, and test access.
Environment configuration note, added November 13, 2026: Changing
/etc/profilein a Dockerfile does not configure the container's runtime environment. In Bash, for example, a login shell normally reads the file. An ordinary DockerfileRUN,docker exec … bash, or a directly launched application will not read it by default. If a startup script explicitly sources the file before launching the application, the application can inherit the variables it exports. Supply deployment variables through Dokploy's corresponding runtime environment settings. For Compose services useenvironmentorenv_file, and use DockerfileENVfor defaults baked into the image. Changing/etc/profileis more appropriate when you actually need login shell initialization. Putting a file in an image does not put the variables it defines in the application process's environment. Bash startup files, Dockerfile ENV and default shell, Compose environment variables
The application must listen on an address reachable through the container network, such as 0.0.0.0. If the image built successfully but the page returns 502, check whether the process started, whether the listening port is correct, and whether Traefik can connect to it.
For an application using ClickHouse, also check whether the database container is ready, the connection address uses the right service name, and the data directory has a persistent volume. A successful image build tells you only that the build finished. Application startup and database connectivity have their own conditions.
When does Dokploy make sense?
If you operate a VPS and want to deploy websites, APIs, internal tools, or several open-source services, Dokploy brings Git, containers, databases, and domains into one workflow. For projects already using Dockerfile or Docker Compose, it also lets you retain the existing deployment description.
Choosing it means being willing to maintain a self-hosted environment. Releases, server resources, and application data need separate attention. For failed builds, inspect Railpack, the Dockerfile, and BuildKit. For access problems, use Uptime Kuma's checks alongside application and Traefik diagnostics. For faulty analytical queries, check ClickHouse. Knowing which layer handles what does more for everyday operations than memorizing the names of the stack.