Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions blueprints/planka/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# PLANKA

PLANKA is an elegant, Trello-like kanban board for team project tracking: projects, boards, lists and cards with real-time updates, labels, members, due dates, checklists, attachments and comments. The Community edition is free and source-available under the project's Fair Use License; a Pro edition exists for organisations.

## How this deployment works

This template runs two services, following upstream's own Docker Compose example:

- **planka** (`ghcr.io/plankanban/planka:2.3.1`) — the application, listening on port 1337.
- **postgres** (`postgres:16-alpine`) — a private PostgreSQL sidecar that stores all boards and users. It is not exposed publicly.

Dokploy generates three secrets at deploy time (see `template.toml`), so there is nothing to fill in before deploying:

- `SECRET_KEY` — signs every access token. **Never change it after the first deploy**, or all sessions are invalidated.
- `POSTGRES_PASSWORD` — the sidecar database password, wired into both services automatically.
- `DEFAULT_ADMIN_PASSWORD` — the password of the seeded first administrator (below).

Uploads, attachments, avatars and background images live in the `planka_data` volume (`/app/data` in the app container); the database lives in the `pgdata` volume.

## First run

1. Open your Dokploy domain — you will land on PLANKA's login page.
2. Log in as **admin@planka.local** with the password Dokploy generated: open this app → **Environment** → the `DEFAULT_ADMIN_PASSWORD` value.
3. Create your first project and board, then invite your team from the admin area.

Why the seeded account? Since PLANKA 1.13 no administrator is created automatically, so the template seeds one through the `DEFAULT_ADMIN_*` variables upstream provides. (The alternative is running `npm run db:create-admin-user` inside the app container by hand.)

## Notes

- While the `DEFAULT_ADMIN_*` variables stay in place, PLANKA re-applies the seeded password on every start and the account cannot be edited or deleted in the UI. After your first login, remove those lines from the compose file in Dokploy and redeploy to turn it into a normal account — and from then on, change its password from inside PLANKA like any other user.
- `BASE_URL` is wired from the app's domain and must match the address you open PLANKA at exactly, or login breaks. If you change the domain in Dokploy afterwards, redeploy so the variable is regenerated.
- Email notifications are configured inside PLANKA (Administration → SMTP) unless you pin them with the `SMTP_*` environment variables upstream documents.
50 changes: 50 additions & 0 deletions blueprints/planka/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
services:
planka:
image: ghcr.io/plankanban/planka:2.3.1
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
# BASE_URL must match the public address exactly, or login breaks.
- BASE_URL=https://${main_domain}
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/planka
# Signs every access token. Dokploy generates it at deploy time (see
# template.toml); never change it afterwards or all sessions break.
- SECRET_KEY=${SECRET_KEY}
# Dokploy serves the app through its reverse proxy.
- TRUST_PROXY=true
# Planka creates no admin account by itself (since 1.13), so the first
# administrator is seeded from these variables. Its password is
# generated by Dokploy; find it under this app's Environment tab.
# While these variables stay set, Planka re-applies the password on
# every start and the account cannot be edited or deleted in the UI —
# remove them after the first login to make it a normal account
# (see README).
- DEFAULT_ADMIN_EMAIL=admin@planka.local
- DEFAULT_ADMIN_PASSWORD=${DEFAULT_ADMIN_PASSWORD}
- DEFAULT_ADMIN_NAME=Admin
- DEFAULT_ADMIN_USERNAME=admin
volumes:
# Uploads, attachments, avatars and background images.
- planka_data:/app/data
expose:
- "1337"

postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
- POSTGRES_DB=planka
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d planka"]
interval: 10s
timeout: 5s
retries: 5

volumes:
planka_data:
pgdata:
Binary file added blueprints/planka/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions blueprints/planka/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"description":"PLANKA is an elegant, Trello-like kanban board for team project tracking: projects, boards, lists and cards with real-time updates, labels, members, due dates, checklists and attachments — self-hosted, with a free Community edition.","id":"planka","links":{"docs":"https://docs.planka.cloud","github":"https://github.com/plankanban/planka","website":"https://planka.app"},"logo":"logo.png","name":"PLANKA","newConfig":true,"seoDescription":"Deploy PLANKA with Docker Compose on Dokploy — the elegant self-hosted kanban board for team project tracking, with PostgreSQL and a seeded first administrator.","seoTitle":"PLANKA Docker Compose Setup","tags":["productivity","kanban","project-management"],"version":"2.3.1"}
18 changes: 18 additions & 0 deletions blueprints/planka/template.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[variables]
main_domain = "${domain}"
postgres_password = "${password:32}"
secret_key = "${base64:64}"
admin_password = "${password:32}"

[config]
env = [
"POSTGRES_PASSWORD=${postgres_password}",
"SECRET_KEY=${secret_key}",
"DEFAULT_ADMIN_PASSWORD=${admin_password}"
]
mounts = []

[[config.domains]]
serviceName = "planka"
port = 1337
host = "${main_domain}"
Loading