Skip to main content
Version: 3.x.x

Running with Java

To run Tolgee server using Java, download the latest release from GitHub.

info

Since v2, Tolgee tries to run PostgreSQL container by default. To disable this, set tolgee.postgres-autostart.enabled property to false and provide the data source settings yourself.

Disabling this is required if you wish to run Tolgee without having Docker installed on your machine. If you leave it enabled, Docker is required to run Tolgee.

Then you can run it with:

java -jar tolgee-<version>.jar

By default, server is exposed on port 8080. To change this you can set server.port to different value.

java -jar tolgee-<version>.jar --server.port=80
tip

You can specify your configuration in an application.properties file, next to the Tolgee server jar. The configuration will be automatically loaded from it, which is more convenient than specifying everything as part of the run command.

To provide a configuration, add following application.properties file.

application.properties
tolgee.authentication.enabled = true
tolgee.authentication.initial-password = admin
tolgee.authentication.initial-username = admin
tolgee.authentication.jwt-secret = my_jwt_secret
tolgee.machine-translation.google.api-key = my_google_api_key
tolgee.smtp.auth = true
tolgee.smtp.from = Tolgee <no-reply@mydomain.com>
tolgee.smtp.host = email-smtp.regional-region.amazonaws.com
tolgee.smtp.password = "omg/my/password"
tolgee.smtp.port = 465
tolgee.smtp.ssl-enabled = true
tolgee.smtp.username = user@company.com

See configuration page for other configuration options.