TimeTracker is designed as one company, many users: a single instance shares one company profile (Settings → Company), one email sender, and one namespace for clients, projects, and invoices.
If you need fully independent companies — each with its own branding, invoice letterhead, SMTP identity, and data — run one TimeTracker instance per company. Roles and permissions can restrict what users see within a single org, but they cannot split company-level settings or email identity across tenants.
| Goal | Recommended approach |
|---|---|
| One business, employees see only their assigned clients/projects | Single instance + Subcontractor role or own-scope permissions |
| One business, users should not see each other's personal projects/clients | Single instance + RBAC own-scope (see Advanced Permissions) |
| Several independent companies (own invoice data, email sender, full admin control) | Separate instance per company (this guide) |
Copy docker-compose.example.yml once per company and give each stack unique values:
| Setting | Instance A | Instance B | Instance C |
|---|---|---|---|
| Host port | 8080:8080 |
8081:8080 |
8082:8080 |
container_name (app) |
timetracker-app-a |
timetracker-app-b |
timetracker-app-c |
container_name (db) |
timetracker-db-a |
timetracker-db-b |
timetracker-db-c |
| Named volumes | app_data_a, db_data_a, … |
app_data_b, … |
app_data_c, … |
SECRET_KEY |
Unique per instance | Unique per instance | Unique per instance |
.env file |
.env.company-a |
.env.company-b |
.env.company-c |
Example for a second instance (docker-compose.company-b.yml):
services:
app:
image: ghcr.io/drytrix/timetracker:latest
container_name: timetracker-app-b
env_file:
- .env.company-b
ports:
- "8081:8080"
volumes:
- app_data_b:/data
- app_uploads_b:/app/app/static/uploads
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:16-alpine
container_name: timetracker-db-b
env_file:
- .env.company-b
volumes:
- db_data_b:/var/lib/postgresql/data
restart: unless-stopped
volumes:
app_data_b:
app_uploads_b:
db_data_b:Start each stack from the project root:
# Generate a unique SECRET_KEY per instance
python -c "import secrets; print(secrets.token_hex(32))"
docker compose -f docker-compose.example.yml --env-file .env.company-a up -d
docker compose -f docker-compose.company-b.yml --env-file .env.company-b up -dAccess:
- Company A:
http://your-server:8080 - Company B:
http://your-server:8081
See Docker Compose Setup for full environment variable reference.
For each instance:
- Set a unique
SECRET_KEYin that instance's.env(required in production). - Log in as admin and configure Settings → Company (legal name, address, VAT, logo).
- Configure email / SMTP for that company's sender address (Email Configuration).
- Create users; each person can be the sole admin of their own instance if desired.
- Optionally set
TZandCURRENCYper instance if companies operate in different regions.
Instances do not share databases or uploads. Back up each stack's volumes separately.
To expose friendly hostnames instead of ports, point subdomains at the correct backend port:
tt-a.example.com→http://127.0.0.1:8080tt-b.example.com→http://127.0.0.1:8081
Use your preferred reverse proxy (nginx, Caddy, Traefik). For HTTPS, see HTTPS setup guides.
Within a single instance, Advanced Permissions and the Subcontractor role can limit which clients, projects, and tasks a user sees. That suits one organization with scoped employees or subcontractors.
It does not provide:
- Separate company profiles or invoice letterheads
- Independent SMTP / “from” addresses per company
- Hard isolation of all entity types and settings as separate tenants
For those requirements, use separate instances as described above.
- Docker Compose Setup — Single-instance deployment
- Advanced Permissions — Roles within one organization
- Subcontractor role — Client/project assignment within one org
- Email Configuration — Per-instance mail settings