- Jinja 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| defaults | ||
| meta | ||
| tasks | ||
| templates | ||
| CHANGELOG.md | ||
| README.md | ||
Kaneo
Deploys Kaneo — an open-source project management tool (boards, backlog, calendar/Gantt) — via Docker Compose, backed by PostgreSQL. Follows the upstream Docker Compose setup, with Traefik routing and optional OIDC single sign-on.
Requirements
- Docker
community.dockerAnsible collection (>=5.2.0)- Traefik with the
traefik_webnetwork whenkaneo_domainis set (see thetraefikrole)
Variables
| Variable | Default | Description |
|---|---|---|
kaneo_instance |
kaneo |
Unique instance name. Used as Compose project name and container names. |
kaneo_data_path |
/data/kaneo |
Host path for persistent data (PostgreSQL data). |
kaneo_docker_path |
/docker/kaneo |
Host path for the Compose and .env files. |
kaneo_image |
ghcr.io/usekaneo/kaneo |
Kaneo image. Override for a private mirror/registry. |
kaneo_version |
2.46.2 |
Kaneo image tag. Pin to a specific version in production. |
kaneo_pg_version |
16 |
PostgreSQL image tag. |
kaneo_domain |
~ |
Public domain. When set, enables Traefik routing labels, attaches to traefik_web, and sets KANEO_CLIENT_URL. |
kaneo_traefik_certresolver |
default |
Traefik certificate resolver to use for kaneo_domain. |
kaneo_port |
~ |
When set, exposes Kaneo on this host port (maps to container port 5173). Omit when using kaneo_domain. |
kaneo_pg_user |
kaneo |
PostgreSQL user, password owner and database name (single value used for all three). |
kaneo_pg_pass |
~ |
PostgreSQL password. Required. Generate with: openssl rand -hex 32 |
kaneo_auth_secret |
~ |
Signs sessions. Required, at least 32 characters. Set once, never change. Generate with: openssl rand -hex 32 |
kaneo_notification_secret |
~ |
Encrypts stored notification tokens and webhook secrets. Needed for Slack/Discord/ntfy/... integrations. Set once, never change. |
kaneo_trusted_proxies |
127.0.0.0/8,::1/128,172.16.0.0/12 |
Reverse proxies whose X-Forwarded-For is trusted. Includes Docker's private range for Traefik. |
kaneo_disable_registration |
true |
Blocks new user creation, including first-time SSO logins. |
kaneo_disable_guest_access |
true |
Disables anonymous guest sign-in. |
kaneo_disable_workspace_creation |
true |
Only instance admins create workspaces. |
kaneo_disable_password_registration |
false |
Blocks local accounts (password, email code, magic link); SSO sign-ups still work. |
kaneo_storage_domain |
~ |
Public hostname for attachment storage. When set, deploys Silo (S3-compatible) and configures Kaneo's uploads. |
kaneo_silo_image / kaneo_silo_version |
docker.io/pgsty/silo / RELEASE.2026-09-16T00-00-00Z |
Silo image and pinned release. |
kaneo_silo_root_user / kaneo_silo_root_password |
kaneo-admin / ~ |
Silo admin account, only used to set up the bucket and user. Password required with kaneo_storage_domain. |
kaneo_storage_bucket |
kaneo-uploads |
Private bucket for uploads. |
kaneo_storage_access_key / kaneo_storage_secret_key |
kaneo / ~ |
Kaneo's own Silo user, limited to the bucket. Secret required with kaneo_storage_domain. |
kaneo_extra_hosts |
{} |
Extra /etc/hosts entries {hostname: ip} for the Kaneo container (e.g. pin public names without NAT hairpin). |
kaneo_oidc |
~ |
OIDC single sign-on (e.g. Keycloak): discovery_url, client_id, client_secret, optional name, scopes, logout_url, pkce, auto_login, disable_login_form. |
kaneo_smtp |
~ |
SMTP for sign-in codes, invitations and notifications: host, username, password, optional port (587), secure (false), from. |
kaneo_extra_env |
{} |
Extra environment variables (S3/Silo storage, Redis, GitHub integration, ...). |
kaneo_uninstall |
false |
Stops and removes all containers and the compose directory. |
kaneo_purge |
false |
With kaneo_uninstall: also deletes the data directory including the database. Irreversible. |
First admin
With kaneo_disable_registration: true, the very first sign-up still works and becomes the instance admin; every later sign-up needs an invitation. Create that account right after the first deploy.
Single sign-on
Register the callback URL https://<kaneo_domain>/api/auth/oauth2/callback/custom at the provider. For Keycloak:
kaneo_oidc:
name: Keycloak
discovery_url: https://auth.example.com/realms/example/.well-known/openid-configuration
client_id: kaneo
client_secret: "{{ vaulted_secret }}"
logout_url: https://auth.example.com/realms/example/protocol/openid-connect/logout
kaneo_disable_registration: true also blocks the first SSO login of a new user. Set it to false to create users on their first SSO login, typically together with disable_login_form: true so SSO is the only way in.
Attachments
Kaneo stores images and attachments in S3-compatible storage only (no local disk). With kaneo_storage_domain set, the role adds Silo to the stack (data in kaneo_data_path/silo), routes that hostname to its S3 API through Traefik (the console stays private), allows uploads from Kaneo's origin (CORS) and creates a private bucket plus a Kaneo user limited to it. Browsers upload straight to that hostname, so it must be public and needs its own DNS record; Kaneo's API must reach it too (see kaneo_extra_hosts). Downloads go through Kaneo. Without kaneo_storage_domain, uploads are unavailable unless an external S3 is configured via kaneo_extra_env.
Example
- hosts: tni01
roles:
- kaneo
vars:
kaneo_domain: tasks.example.com
kaneo_pg_pass: "{{ vaulted_pg_pass }}"
kaneo_auth_secret: "{{ vaulted_auth_secret }}"