Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

docs: add drim CLI tool for one-click deployment and enhance installation instructions

Andrej Acevskic3e05a4edf71
diff --git a/README.md b/README.md
index 345478ccc..d5e7ddafb 100644
--- a/README.md
+++ b/README.md
@@ -52,6 +52,19 @@ Kaneo is open source and free forever. If you find it useful, consider [sponsori
## Getting Started
+### One-Click Deployment with drim
+
+For straightforward deployments, use [drim](https://github.com/usekaneo/drim) - a CLI tool that handles everything for you:
+
+```bash
+curl -fsSL https://assets.kaneo.app/install.sh | sh
+drim setup
+```
+
+That's it. Your Kaneo instance will be running with automatic HTTPS, database setup, and all services configured.
+
+Perfect for quick deployments and production setups where you want things to just work.
+
### Quick Start with Docker Compose
The fastest way to try Kaneo is with Docker Compose. This sets up the API, web interface, and PostgreSQL database:
diff --git a/apps/docs/content/docs/api/index.mdx b/apps/docs/content/docs/api/index.mdx
index 05736cc2e..2b7869814 100644
--- a/apps/docs/content/docs/api/index.mdx
+++ b/apps/docs/content/docs/api/index.mdx
@@ -1,7 +1,6 @@
---
title: API Reference
description: Complete API reference for Kaneo
-icon: Terminal
---
import { Card, Cards } from 'fumadocs-ui/components/card';
diff --git a/apps/docs/content/docs/api/meta.json b/apps/docs/content/docs/api/meta.json
index 1cbbed145..98da40d33 100644
--- a/apps/docs/content/docs/api/meta.json
+++ b/apps/docs/content/docs/api/meta.json
@@ -1,17 +1,4 @@
{
- "title": "API",
- "description": "The API for Kaneo",
- "pages": [
- "authentication",
- "getConfig",
- "globalSearch",
- "tasks",
- "projects",
- "labels",
- "activities",
- "comments",
- "time-entries",
- "notifications",
- "github-integration"
- ]
+ "title": "API Reference",
+ "root": true
}
diff --git a/apps/docs/content/docs/core/index.mdx b/apps/docs/content/docs/core/index.mdx
index 9492cadc8..bd4411ff2 100644
--- a/apps/docs/content/docs/core/index.mdx
+++ b/apps/docs/content/docs/core/index.mdx
@@ -18,9 +18,20 @@ Kaneo is composed of several components:
### Installation
-The installation process is straightforward, we have a Docker Compose file that will start the required services.
+We offer two ways to install Kaneo:
-It is part of a three part installation process.
+**Quick Setup with drim (Recommended)**
+
+For straightforward deployments, use [drim](/docs/core/installation/drim) - a CLI tool that handles everything automatically:
+
+```bash
+curl -fsSL https://assets.kaneo.app/install.sh | sh
+drim setup
+```
+
+**Manual Setup with Docker Compose**
+
+For more control or complex setups, follow the manual installation process:
- [Setting up the Docker compose file](/docs/core/installation/docker-compose)
- [Setting up the environment variables](/docs/core/installation/environment-variables)
diff --git a/apps/docs/content/docs/core/installation/docker-compose.mdx b/apps/docs/content/docs/core/installation/docker-compose.mdx
index 6537cfc88..2c3b2eafb 100644
--- a/apps/docs/content/docs/core/installation/docker-compose.mdx
+++ b/apps/docs/content/docs/core/installation/docker-compose.mdx
@@ -18,6 +18,11 @@ services:
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
+ healthcheck:
+ test: ["CMD-SHELL", "pg_isready -U kaneo -d kaneo"]
+ interval: 10s
+ timeout: 5s
+ retries: 5
api:
image: ghcr.io/usekaneo/api:latest
@@ -25,6 +30,9 @@ services:
- "1337:1337"
env_file:
- .env
+ depends_on:
+ postgres:
+ condition: service_healthy
restart: unless-stopped
web:
@@ -33,6 +41,8 @@ services:
- "5173:5173"
env_file:
- .env
+ depends_on:
+ - api
restart: unless-stopped
volumes:
diff --git a/apps/docs/content/docs/core/installation/drim.mdx b/apps/docs/content/docs/core/installation/drim.mdx
new file mode 100644
index 000000000..575aaa357
--- /dev/null
+++ b/apps/docs/content/docs/core/installation/drim.mdx
@@ -0,0 +1,113 @@
+---
+title: Deploy with drim CLI
+description: One-click deployment tool for self-hosted Kaneo instances
+---
+
+## What is drim?
+
+[drim](https://github.com/usekaneo/drim) is a CLI tool for deploying your Kaneo instances. It's designed for fairly straightforward setups where you want to get Kaneo up and running quickly without manual configuration.
+
+drim handles:
+- Docker Compose file generation
+- Environment variable setup
+- Automatic HTTPS with Caddy
+- Service management (start, stop, restart)
+- Updates and upgrades
+
+## Installation
+
+Install drim with a single command:
+
+```bash
+curl -fsSL https://assets.kaneo.app/install.sh | sh
+```
+
+Or download the binary manually from [releases](https://github.com/usekaneo/drim/releases/latest).
+
+## Quick Start
+
+### Local Development
+
+For local development without a domain:
+
+```bash
+drim setup
+# Press Enter when prompted for domain
+# Access at http://localhost
+```
+
+### Production Deployment
+
+For production with automatic HTTPS:
+
+```bash
+drim setup
+# Enter your domain when prompted (e.g., kaneo.example.com)
+# Access at https://your-domain.com
+```
+
+<Callout type="info">
+Make sure your domain's DNS A record points to your server before running setup.
+</Callout>
+
+## Commands
+
+drim provides several commands to manage your Kaneo instance:
+
+```bash
+drim setup # Deploy Kaneo
+drim start # Start services
+drim stop # Stop services
+drim restart # Restart services
+drim upgrade # Update Kaneo to latest version
+drim update # Update drim CLI to latest version
+drim configure # Edit configuration
+drim uninstall # Remove Kaneo
+```
+
+## What Gets Installed
+
+When you run `drim setup`, the following services are deployed:
+
+- **PostgreSQL 16** - Database
+- **Kaneo API** - Backend service
+- **Kaneo Web** - Frontend interface
+- **Caddy** - Reverse proxy with automatic HTTPS
+
+All services run in Docker containers with proper networking and health checks.
+
+## Configuration
+
+To edit environment variables after setup:
+
+```bash
+drim configure
+```
+
+This opens `.env` in your default editor. After saving, services are restarted automatically.
+
+See the [environment variables documentation](/docs/core/installation/environment-variables) for available options.
+
+## Requirements
+
+- Docker 20.10+
+- Docker Compose V2
+- 2GB RAM minimum
+- 10GB disk space
+
+**Supported Platforms:** Linux, macOS, Windows (WSL)
+
+<Callout type="info">
+drim will attempt to install Docker automatically on supported Linux distributions.
+</Callout>
+
+## When to Use drim
+
+drim is ideal for:
+
+- Quick local development setups
+- Simple production deployments with a single domain
+- Teams that want automatic HTTPS without manual configuration
+- Anyone who wants to get Kaneo running with minimal effort
+
+For more complex setups (multiple domains, custom networking, Kubernetes, etc.), see the [manual Docker Compose installation](/docs/core/installation/docker-compose).
diff --git a/apps/docs/content/docs/core/installation/index.mdx b/apps/docs/content/docs/core/installation/index.mdx
new file mode 100644
index 000000000..2ef27c6e7
--- /dev/null
+++ b/apps/docs/content/docs/core/installation/index.mdx
@@ -0,0 +1,51 @@
+---
+title: Installation Overview
+description: Choose how to install Kaneo - quick setup with drim or manual Docker Compose
+---
+
+## Choose Your Installation Method
+
+Kaneo offers two installation methods depending on your needs:
+
+### Quick Setup with drim (Recommended)
+
+[drim](/docs/core/installation/drim) is a CLI tool designed for straightforward Kaneo deployments. It's perfect for:
+
+- Getting started quickly with minimal configuration
+- Local development environments
+- Simple production deployments with a single domain
+- Automatic HTTPS setup
+
+```bash
+curl -fsSL https://assets.kaneo.app/install.sh | sh
+drim setup
+```
+
+### Manual Setup with Docker Compose
+
+For more control over your deployment or complex setups, use the manual installation process:
+
+1. [Create the Docker Compose file](/docs/core/installation/docker-compose)
+2. [Configure environment variables](/docs/core/installation/environment-variables)
+3. [Start the services](/docs/core/installation/start-services)
+
+This method is ideal for:
+- Custom networking configurations
+- Multiple domains or complex reverse proxy setups
+- Integration with existing infrastructure
+- Advanced customization needs
+
+## Requirements
+
+Both methods require:
+
+- Docker 20.10+
+- Docker Compose V2
+- 2GB RAM minimum
+- 10GB disk space
+
+**Supported Platforms:** Linux, macOS, Windows (WSL)
+
+## Next Steps
+
+Choose your preferred method and follow the corresponding guide to get Kaneo up and running.
diff --git a/apps/docs/content/docs/core/installation/meta.json b/apps/docs/content/docs/core/installation/meta.json
index ac7f72440..6c94fcd1a 100644
--- a/apps/docs/content/docs/core/installation/meta.json
+++ b/apps/docs/content/docs/core/installation/meta.json
@@ -3,6 +3,7 @@
"icon": "Package",
"pages": [
"index",
+ "drim",
"docker-compose",
"environment-variables",
"start-services"
diff --git a/apps/docs/next-env.d.ts b/apps/docs/next-env.d.ts
index c4b7818fb..9edff1c7c 100644
--- a/apps/docs/next-env.d.ts
+++ b/apps/docs/next-env.d.ts
@@ -1,6 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
-import "./.next/dev/types/routes.d.ts";
+import "./.next/types/routes.d.ts";
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.