Public | Automated Build

Last pushed: 2 years ago
Short Description
Dockerfile for youtrack to run under tomcat.
Full Description

docker-tomcat-youtrack

Dockerfile for youtrack to run under tomcat. Tomcat is needed to have a context path so that it can placed in sub location like http://youdomain.name/youtrack/, standalone youtrack.jar does not work in the case. Youtracks runs under localhost:8080/youtrack.
All youtrack data is placed in the directory mapped to /var/lib/youtrack in the container. As extra bonus dockerized youtrack is registered as ubunutu service docker-youtrack and a front-end server ngnix is configured.

prerequisites

  • ubunut >= 12.00 as host system
  • working docker installation
  • standard nginx installation

run it as service

create data folder for youtrack

$ mkdir -p /var/lib/youtrack

download image and run container

$ docker create -t -i -p 8080:8080 -v /var/lib/youtrack:/var/lib/youtrack  --name docker-youtrack h2000/docker-tomcat-youtrack

register docker youtrack service

copy file _etcinit/docker-youtrack.conf to /etc/init/

start the service

$ service docker-youtrack start

nginx setup

copy _etc_nginx_sites-available/youtrack file to /etc/nginx/sites-available

change your server name in the youtrack file

link /etc/nginx/sites-available/youtrack to /etc/nginx/sites-enabled

$ ln -s /etc/nginx/sites-available/youtrack /etc/nginx/sites-enabled/youtrack

reload nginx

$ service nginx reload

build it

$ docker build -t h2000/docker-tomcat-youtrack .
Docker Pull Command
Owner
h2000
Source Repository