Change the Base URL or Listen Port
The base URL is the public address users open. The listener port is the port inside the container. A reverse proxy or Docker port mapping can make these ports different.
Setting | JVM property | Environment variable |
|---|---|---|
Base URL |
|
|
Listener port |
|
|
Changing the Base URL
The base URL is read-only in the UI. Change it in deployment configuration and restart. Use an HTTP or HTTPS URL with a host and no query, fragment, or trailing slash. Include a context path if required, for example https://youtrack.example.com/youtrack.
To change the base URL:
Edit the base URL line in
conf/youtrack.jvmoptionsin the host configuration directory:-Djetbrains.youtrack.baseUrl=https://youtrack.example.comAlternatively, remove the line and set
JETBRAINS_YOUTRACK_BASEURLin the container deployment. A-Dproperty takes precedence over the environment variable, so the variable has no effect while the line remains in the file.Start the container. Recreate it with the same mounts if you changed its environment variables. Update proxy routing and integration addresses as needed.
Review the registered YouTrack base URLs and remove addresses no longer in use.
The setup wizard can write this line, and the upgrade process imports it from the previous configuration. Preserve it in backups. When no source supplies a base URL, startup uses http://localhost:8080.
Changing the Listen Port
The default container port is 8080 without built-in TLS and 8443 with TLS. Upgrading from a version earlier than 2026.3 preserves the existing listener port.
To change the listener port:
Set the new port in
conf/youtrack.jvmoptions, for example:-Djetbrains.youtrack.port=8081Alternatively, set
JETBRAINS_YOUTRACK_PORTafter removing any conflicting JVM property.Recreate the container with the same mounts and deployment settings, updating the container side of its port mapping, for example
-p 80:8081. Update proxy routing and the base URL if needed.
Run YouTrack on a Default Port Without a Reverse Proxy
Keep the default internal port and map the host port. Use -p 80:8080 for HTTP in test or trusted environments. For production, configure TLS, use -p 443:8443, and set an HTTPS base URL. To redirect host port 80 to HTTPS, also add -p 80:8443.