Deploying a Tolgee App
Introduction
Tolgee delivers collaborative localization with an integrated translation UI and API. This guide shows how to containerize Tolgee, connect it to PostgreSQL, attach persistent storage, and deploy it to Klutch.sh using HTTP traffic.
Prerequisites
- GitHub repository with your Tolgee Dockerfile.
- External PostgreSQL instance (managed service or separate Klutch.sh app).
- Klutch.sh project ready in klutch.sh/app.
Project structure
.├── Dockerfile└── init └── README.mdSample Dockerfile
FROM tolgee/tolgee:latest
# Optional: add branding assets or configuration overrides# COPY overrides/* /app/
ENV SERVER_PORT=8080EXPOSE 8080Required environment variables
SPRING_DATASOURCE_URL– e.g.,jdbc:postgresql://<host>:<port>/<db_name>SPRING_DATASOURCE_USERNAMESPRING_DATASOURCE_PASSWORDTOLGEE_AUTH_DEFAULT_USERNAME– initial adminTOLGEE_AUTH_DEFAULT_PASSWORDTOLGEE_FRONTEND_URL– public URL for links and callbacks (e.g.,https://example-app.klutch.sh)
Optional environment variables
SPRING_PROFILES_ACTIVE=prodTOLGEE_ALLOW_REGISTRATION=falseto restrict signupsTOLGEE_CORS_ALLOWED_ORIGINSfor UI/API hosts
Persistence
Tolgee stores data in Postgres. If you want to persist file storage (exports, assets), mount a volume at:
- Mount path:
/data - Size: pick based on expected asset footprint
Networking
- Protocol: HTTP
- Internal port:
8080 - Users reach your app at
https://example-app.klutch.shwhile Klutch.sh routes to8080in the container.
Health check (recommended)
curl -I http://localhost:8080Deployment on Klutch.sh
- Commit the Dockerfile to your GitHub repo.
- In klutch.sh/app, create a new app and choose GitHub as the source.
- Klutch.sh automatically detects the Dockerfile in the repository root.
- Select HTTP traffic and set the internal port to
8080. - Add environment variables for database connectivity and admin credentials (mark secrets for passwords).
- Optionally attach a persistent volume at
/datawith the size you need. - Deploy. After the first boot, log in with the default admin credentials and configure projects.
Verification
-
Open
https://example-app.klutch.shto confirm the Tolgee UI loads. -
API check:
Terminal window curl -s https://example-app.klutch.sh/api/v2/public/health
Next steps
- Rotate admin credentials after first login.
- Tune CORS, email, and OAuth providers via environment variables.
- Enable database backups on your PostgreSQL service.