# Self-host Traggo

> Self-hosted time tracking with tags instead of projects, a timeline and dashboards. Runs a single container with data on a volume.

- Page: https://levelrail.com/templates/traggo/
- JSON: https://levelrail.com/templates/traggo.json
- Category: Productivity
- Licence: GPL-3.0-only (Copyleft license)
- Source: https://github.com/traggo/server
- Upstream docs: https://traggo.net/

## Requirements
- Memory: about 64 MiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: 0.8.3

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| traggo | traggo/server | 0.8.3 | 3030 | data -> /opt/traggo/data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| traggo | TRAGGO_DEFAULT_USER_NAME | preset |
| traggo | TRAGGO_DEFAULT_USER_PASS | generated |

## Deploy

### CLI

```bash
levelrail-cli templates install traggo --name my-traggo
```

Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain traggo=app.example.com.

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  https://levelrail.example.com/api/v1/service-templates/traggo/install \
  -d '{
    "name": "my-traggo"
  }'
```

Create a token in the dashboard first. Name, env and domains are the request fields.

## First run
1. Sign in as admin with the generated password shown in the deployment variables, then create tags and start a timer.

## Questions

### Can I deploy Traggo on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Traggo, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image traggo/server:0.8.3 is what you deploy there.

Self-host Traggo, Traggo docker compose file, deploy Traggo on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
