Wakapi — a self-hosted coding-statistics server compatible with WakaTime: your editor plugins report activity here and you get dashboards of time spent per language, project, and editor. Deployed as a single host-networked Nomad service on SQLite with a data volume.
Save as values.hcl, edit, then run:
# The name of the Nomad job.
job_name = "wakapi"
# The Nomad namespace to deploy into.
namespace = "default"
# The datacenters to deploy to.
datacenters = ["*"]
# The Wakapi container image. Pin a tag in production.
image = "ghcr.io/muety/wakapi:latest"
# Host port for the Wakapi web UI / API (WAKAPI_PORT).
port = 3016
# Secret salt for hashing passwords (WAKAPI_PASSWORD_SALT). Set a long random value.
password_salt = "change-me-to-a-long-random-salt"
# UID Wakapi runs as. The data volume is chown'd to this at startup.
uid = 1000
# Named volume for the SQLite database (/data).
data_volume = "wakapi_data"
# Placement constraints. Pin to the node holding the volume. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []
# The task resources.
resources = {
cpu = 200
memory = 128
}
| Name | Type | Default | Description |
|---|---|---|---|
| job_name | string | "wakapi" | The name of the Nomad job. |
| namespace | string | "default" | The Nomad namespace to deploy into. |
| datacenters | list | ["*"] | The datacenters to deploy to. |
| image | string | "ghcr.io/muety/wakapi:latest" | The Wakapi container image. Pin a tag in production. |
| port | number | 3016 | Host port for the Wakapi web UI / API (WAKAPI_PORT). |
| password_salt set me | string | "change-me-to-a-long-random-salt" | Secret salt for hashing passwords (WAKAPI_PASSWORD_SALT). Set a long random value. |
| uid | number | 1000 | UID Wakapi runs as. The data volume is chown'd to this at startup. |
| data_volume | string | "wakapi_data" | Named volume for the SQLite database (/data). |
| constraints | list | [] | Placement constraints. Pin to the node holding the volume. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true". |
| resources | object | {
cpu = 200
memory = 128
} | The task resources. |
No variables match.
Wakapi — a self-hosted coding-statistics server compatible with WakaTime. Your editor plugins report activity here and you get dashboards of time spent per language, project, and editor.
Single host-networked Nomad service on SQLite with a data volume. A busybox prestart task chowns the data volume to Wakapi's UID.
nomad-pack registry add nomploy https://github.com/Nomploy/nomad-packs
nomad-pack run wakapi --registry=nomploy
| Variable | Default | Description |
|---|---|---|
port |
3016 |
Web UI / API port (WAKAPI_PORT). |
password_salt |
placeholder | WAKAPI_PASSWORD_SALT — set a long random value. |
uid |
1000 |
User Wakapi runs as; data volume is chown'd to it. |
data_volume |
wakapi_data |
/data — SQLite database. |
image |
ghcr.io/muety/wakapi:latest |
Image. Pin a tag in production. |
resources |
{ cpu = 200, memory = 128 } |
Task resources. |
Sign up, grab your API key, and point your editor's WakaTime plugin at
http://<node-ip>:<port>/api. Pin the job to the node holding the volume with constraints.