Skip to main content

Installation Commands

Install Dokploy

Install Dokploy on a fresh VPS or server:
This command will:
  • Install Docker and required dependencies
  • Set up Dokploy containers
  • Configure Traefik for routing
  • Initialize the database
  • Start the Dokploy web interface
The installation typically takes 2-5 minutes depending on your server specifications.

Development Commands

These commands are used when contributing to Dokploy or running a local development environment.

Setup Development Environment

Start Development Server

Starts the development server at http://localhost:3000

Run Server Scripts

Executes server initialization scripts required for development.

Build for Production

Builds the Dokploy application for production deployment.

Start Production Server

Starts the production build of Dokploy.

Docker Commands

Build Docker Image

Builds the Dokploy Docker image locally.

Build Canary Image

Builds the canary (development) version of the Docker image.

Push Docker Image

Pushes the built Docker image to the registry.

Utility Commands

Reset Password

If you’ve lost access to your Dokploy instance, reset your admin password:
This command should be run on the server where Dokploy is installed.

Type Checking

Runs TypeScript type checking across all packages.

Linting and Formatting

Dokploy uses Biome for code formatting and linting.

Generate OpenAPI Specification

Generates the OpenAPI specification file for the Dokploy API.

Run Tests

Executs the test suite.

API Commands via cURL

While Dokploy doesn’t have a dedicated CLI tool, you can interact with it using the REST API via curl or any HTTP client.

Deploy Application

Create Application

List Applications

Create Database

Get Deployment Logs

Build Pack Commands

Dokploy supports multiple build strategies. Install these tools for local development:

Install Nixpacks

Install Railpack

Install Buildpacks

Environment Variables

Common environment variables used by Dokploy:

Command Aliases

Create helpful aliases for common operations:
~/.bashrc or ~/.zshrc

Advanced Usage

Webhooks for Deployment

Trigger deployments via webhooks without API tokens:
Webhook URLs can be generated in the application settings.

Docker Socket Permission Fix

If you encounter Docker permission issues:

Next Steps

Automation Guide

Learn how to automate deployments and workflows

API Reference

Explore the complete API documentation