Documentation
¶
Overview ¶
Command taskmill-ui serves taskmill's dashboard of an installation on its own, apart from the applications that use it.
go install github.com/code19m/taskmill/cmd/taskmill-ui@latest TASKMILL_DATABASE_URL=postgres://... TASKMILL_UI_PASSWORD=... taskmill-ui
Each release also publishes it as binaries and as the container image ghcr.io/code19m/taskmill-ui.
It reads its settings from the environment:
TASKMILL_DATABASE_URL the PostgreSQL connection string (required)
TASKMILL_SCHEMA the installation's schema (default: taskmill)
TASKMILL_UI_ADDR the address to listen on (default:
localhost:8080; use :8080 in a container)
TASKMILL_UI_USERNAME the user of HTTP basic authentication
(default: admin)
TASKMILL_UI_PASSWORD its password; without one, anyone who
reaches the address can use the dashboard
TASKMILL_UI_READ_ONLY true to disable every action (any value
that strconv.ParseBool accepts)
TASKMILL_UI_PREFIX the path the dashboard is served at, such as
/admin/jobs, when a proxy forwards that path
to it unchanged (default: the root)
TASKMILL_UI_FRAME_ANCESTORS the origins of the pages that may show the
dashboard in a frame, separated by commas or
spaces, such as https://admin.example.com
(default: none)
TASKMILL_UI_LOG_FORMAT the format of the logs on standard error:
text or json (default: text)
For probes, it answers two paths at the root, with no login and whatever the prefix: /livez answers 200 while the server runs, and /readyz answers 200 while the database answers too, and 503 otherwise. Base only the readiness probe on /readyz: a restart does not bring the database back. /readyz asks the database at most once a second, and waits for it at most 2 seconds.
It does not migrate the schema: the applications that own it do. It exports no metrics: the applications export the queue gauges, through the module github.com/code19m/taskmill/otel.