YouTrack Server
 
2019.2
Get YouTrack Standalone
You are viewing the documentation for an earlier version of YouTrack Server. View this page in the current documentation

Run Docker Container as a Service

Last modified: 17 December 2019

Docker team recommends to use cross-platform built-in restart policy for running container as a service. For this, configure your docker service to start on system boot and simply add parameter --restart unless-stopped to the docker run command that starts YouTrack.

However, when it comes to the sequential start of several services (including YouTrack), the restart policy method will not suit. You can use a process manager instead.

Here's an example of how to run YouTrack container as a service on Linux with help of systemd.

You can also stop and start the service manually at any moment with the following commands, respectively: