Skip to Content
⚠️ Dockflow is currently under development. Bugs may occur. Please report any issues on GitHub.
Getting Started

Getting Started

Dockflow deploys to a single server or a multi-node cluster — same workflow. All you need to get started is one Linux server.

Install the CLI

npm install -g @dockflow-tools/cli dockflow --version

Setup Your Server

You need a Debian/Ubuntu server with SSH access (root or sudo user).

If the CLI is installed on the server:

dockflow setup

If the CLI is installed on your local machine:

dockflow setup remote

The wizard handles everything: Docker installation, Swarm initialization, SSH keys, and deployment user creation. At the end, it generates a connection string — save it for later.

Create Your Project

dockflow init

This generates the following structure at the root of your project:

    • config.yml
    • servers.yml
      • docker-compose.yml
      • Dockerfile.[service]
  • config.yml — Project name, build strategy, health checks (reference)
  • servers.yml — Servers and environment variables (reference)
  • docker/ — Docker Compose stack and Dockerfiles

Deploy

Create a .env.dockflow file at the root of your project with the connection string(s) from setup:

PRODUCTION_MAIN_SERVER_CONNECTION=eyJ...base64...

Then deploy:

dockflow deploy production

The .env.dockflow file is loaded automatically by the CLI. Do not commit it to your repository.