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 (any OS)
npm install -g @dockflow-tools/cli
dockflow --versionSetup Your Server
You need a Debian/Ubuntu server with SSH access (root or sudo user).
Interactive (Recommended)
If the CLI is installed on the server:
dockflow setupIf the CLI is installed on your local machine:
dockflow setup root@your-server-ipThe wizard handles everything: Docker installation, orchestrator setup (Swarm or k3s), SSH keys, and deployment user creation. At the end, it generates a connection string — save it for later.
Create Your Project
dockflow initThis generates the following structure at the root of your project:
- config.yml
- servers.yml
- docker-compose.yml
- accessories.yml
- Dockerfile
config.yml— Project name, build strategy, health checks (reference)servers.yml— Servers and environment variables (reference)docker/— Docker Compose stack, accessories, and Dockerfilehooks/— Pre/post build and deploy hook scripts (reference)
Deploy
CLI
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 productionThe .env.dockflow file is loaded automatically by the CLI. Do not commit it to your repository.