manage scheduled tasks, work hours, absences, expenses...
2.6K
Plan recurring maintenance work across a team. Mainty handles rotations, working schedules, absences, time tracking and expense receipts, all in one self-hosted app.
Source: https://github.com/philiplehmann/mainty
| Tag | Meaning |
|---|---|
latest | Latest build from main |
1.2.3, 1.2 | Release versions |
sha-<commit> | A specific commit |
Images are multi-arch: linux/amd64 and linux/arm64.
docker run -d -p 3000:3000 \
-e DATABASE_URL=postgres://user:pass@db:5432/maintenance \
-e BETTER_AUTH_URL=https://mainty.example.com \
-e BETTER_AUTH_SECRET=<random string, at least 32 characters> \
-e OIDC_PROVIDER_ID=my-oidc \
-e OIDC_ISSUER=https://id.example.com/realms/example \
-e OIDC_DOMAIN=example.com \
-e OIDC_CLIENT_ID=mainty \
-e OIDC_CLIENT_SECRET=<client secret> \
philiplehmann/mainty:latest
The app serves the web UI and the API on port 3000. It has a health check at /health.
Register this redirect URI with your identity provider:
${BETTER_AUTH_URL}/api/auth/sso/callback/${OIDC_PROVIDER_ID}
| Variable | Required | Purpose |
|---|---|---|
DATABASE_URL | yes | PostgreSQL connection URL (tested with PostgreSQL 18) |
BETTER_AUTH_URL | yes | Public origin of the app |
BETTER_AUTH_SECRET | yes | Random secret, at least 32 characters |
OIDC_PROVIDER_ID | yes | Stable provider ID used in the callback URL |
OIDC_ISSUER | yes | OIDC issuer URL (with /.well-known/openid-configuration) |
OIDC_DISCOVERY_URL | no | Discovery URL override, if the issuer isn't reachable from the container |
OIDC_DOMAIN | yes | Email domain allowed to sign in (verified email claim required) |
OIDC_CLIENT_ID / OIDC_CLIENT_SECRET | yes | OIDC client credentials |
S3_ENDPOINT, S3_REGION, S3_BUCKET, S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY | no | S3-compatible storage for expense receipts. Without these, receipt upload and download return 503 and everything else works. |
PORT / HOST | no | Listen address (default 3000 / 0.0.0.0) |
The container does not apply database migrations on start. Before the first run, and after upgrading, apply the schema from a checkout of the repository:
DATABASE_URL=... bunx drizzle-kit migrate
Sign in with your identity provider and create an organization. You become its owner. Then add team members by email: they get access as soon as they sign in with a matching verified email.
docker pull philiplehmann/mainty:latest