Back to TresekoView full library

Docker installation

Recommended workflow to run Treseko on Linux, VPS or Windows with Docker Desktop.

Practical guide

1 guide found

All guides

Docker installation

Recommended workflow to run Treseko on Linux, VPS or Windows with Docker Desktop.

Open guide
Reading
10 min
Updated
2026-07-29
Version
1.0.6

When to use this guide

Use it when the installation is not a disposable test: a VPS, a lab machine or a server that someone will maintain.

Expected result

An organized stack, with separate services, persistent data and a reasonable foundation for backups, rebuilds and updates.

The recommended path is to use the official installers. They prepare Docker Compose, generate secrets outside the configuration file, run migrations and create the first administrator without repeating sensitive steps by hand.

In production, Docker Compose handles startup, not the complete operation. You still need to manage secrets, backups, permissions, logs and exposed ports.

On Windows with Docker Desktop, files mounted from the host do not always behave the same as inside Linux. Scripts, permissions and line endings deserve extra review.

Recommended flow

  1. Choose a local installation, Windows with Docker Desktop or a Linux server over SSH.
  2. Run the matching official installer.
  3. Let it generate secrets, prepare Compose and run migrations.
  4. Save the temporary administrator password.
  5. Open the reported URL and change the password on first login.
  6. Verify health checks and containers.
  7. Configure backup and update policy.

Local installation

scripts/install_local_treseko.sh --http-port 9095
# Windows PowerShell:
.\scripts\install_local_treseko.ps1 -HttpPort 9095

Remote installation over SSH

scripts/install_remote_treseko.sh user@server --http-port 9095

Verify the result

curl http://localhost:9095/api/health
docker compose -f docker-compose.prod.yml --env-file compose.production.env ps

How to verify

  • Database volumes are stored in a path that will be backed up.
  • The frontend reaches the backend using the expected public URL.
  • Logs do not print secrets, tokens or passwords.
  • A test backup can be restored on a clean installation.

Common pitfalls

  • Mounting the entire repo from Windows and assuming permissions will be identical to Linux.
  • Editing compose.production.env with plaintext secrets instead of using protected secret files.
  • Exposing PostgreSQL or Redis to the internet when not needed.
docker composelinuxwindowspostgresqlredis