This repository contains a Docker image of JetBrains YouTrack.
- The Docker image is available at uniplug/youtrack
- The GitHub repository is available at uniplug/docker-youtrack
Create a named container 'youtrack'.
docker create --name youtrack uniplug/youtrack
Start the container.
docker start youtrack
YouTrack starts and listens on port 80 in the container. To map it to the host's port 80, use the following command to create and start the container instead:
docker run -t --name youtrack -p 80:80 -t uniplug/youtrack
To access container logs
docker logs -f youtrack
YouTrack is started and managed by supervisor.
YouTrack stores its data and backups at /opt/youtrack/data/
and /opt/youtrack/backup/
in the container.
If you wish to re-use data, it is a good idea to set up a volume mapping for these two paths. For example:
docker run -t \
--name="youtrack" \
-v /data/youtrack/data/:/opt/youtrack/data/ \
-v /data/youtrack/backup/:/opt/youtrack/backup/ \
-p 80:80 \
uniplug/youtrack
Service example with jwilder/nginx-proxy
[Unit]
Description=YouTrack
After=docker.service nginx-proxy.service
Requires=docker.service nginx-proxy.service
[Service]
KillMode=none
ExecStartPre=-/usr/bin/docker kill youtrack
ExecStartPre=-/usr/bin/docker rm youtrack
ExecStart=/usr/bin/docker run -t \
--name youtrack \
-v /data/youtrack/data/:/opt/youtrack/data/ \
-v /data/youtrack/backup/:/opt/youtrack/backup/ \
-e VIRTUAL_HOST=youtrack.example.com \
uniplug/youtrack
ExecStop=-/usr/bin/docker stop youtrack