Running Fettledesk
Settings
The settings Fettledesk reads when it starts, in .env, and the ones that live in the app.
In the app
Things that change while Fettledesk runs live in the app, not in files:
- Organisation settings (admins): the organisation's name and time zone, asset tracking, who can change assets, and outgoing email.
- Project settings (project admins): name, description and key, who has access, the help centre, request types, service levels, workflows and email requests.
- Profile and preferences (everyone): name, password, email notifications and theme.
In .env
These are read when Fettledesk starts. Everything is optional for a trial on your own computer. Copy .env.example to .env, change what you need, and run docker compose up -d again.
| Setting | Default | What it does |
|---|---|---|
PUBLIC_URL | http://localhost:8080 | The exact address people use, with the scheme and port. Used for links and to block cross-site requests; https:// turns on secure cookies and HSTS. |
HTTP_PORT | 8080 | The port published on the host. 127.0.0.1:8080 publishes it to this machine only. |
POSTGRES_PASSWORD | fettledesk | The database password. install.sh makes a random one. The database is never published outside Docker. |
TRUST_PROXY | false | true behind a reverse proxy, so people's addresses and HTTPS are seen correctly. |
ATTACHMENT_MAX_MB | 25 | The largest attachment accepted, 1 to 1024 MB. Larger uploads are refused, never cut short. |
RATE_LIMIT_PER_MINUTE | 600 | API requests a minute for each signed-in person (each address when signed out) before Fettledesk answers 429, too many requests. |
EMAIL_POLL_SECONDS | 60 | How often email request mailboxes are checked, 15 to 3600 seconds. |
SECRET_KEY | (made for you) | 32 random bytes in base64 that encrypt stored secrets, such as mailbox passwords. If unset, Fettledesk makes /data/secret.key. |
SETUP_CODE | (made for you) | The code the setup wizard asks for, at least 8 characters, for scripted installs. If unset, a new one is printed in the log at each start until setup has run. |
LOG_LEVEL | info | fatal, error, warn, info, debug or trace. |
UPDATE_CHECK | true | Once a day, check desk.fettle.software for a newer release, and tell organisation admins. Nothing about this install is sent. false turns it off. |
LOG_FORMAT | json | json for log collectors, or pretty for reading in a terminal (development only). |
FETTLEDESK_IMAGE | (build locally) | Run a published image instead of building one. |
DOMAIN, ACME_EMAIL | With compose.prod.yaml only: the HTTPS address, and the email for certificate notices. |
If a setting is wrong, Fettledesk lists every bad setting with what it expects, and stops. Fix .env and start it again.
Checking it's healthy
docker compose ps
curl -s http://localhost:8080/readyz
/healthz answers when the server is up; /readyz also checks the database. Logs are one JSON object per line: docker compose logs -f app.
The API
Fettledesk's web app uses a JSON API at /api/v1, described in OpenAPI. Browse it at /api/docs on your Fettledesk. Devices can be sent from inventory tools with an integration token.