docker run -t -i -p 8080:8080 smalllark/youtrack
docker run -t -i -p 8080:8080 -v /var/lib/youtrack:/var/lib/youtrack smalllark/youtrack
docker run -p 8080:8080 -v /var/lib/youtrack:/var/lib/youtrack --name youtrack --restart=always smalllark/youtrack
upstream docker-youtrack {
server localhost:8080;
}
server {
listen 80;
server_name your-domain.com;
access_log /var/log/nginx/your-domain/access.log;
error_log /var/log/nginx/your-domain/error.log;
proxy_set_header Host $http_host; # required for docker client's sake
proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP
client_max_body_size 0; # disable any limits to avoid HTTP 413 for large image uploads
# required to avoid HTTP 411: see Issue #1486 (https://github.com/dotcloud/docker/issues/1486)
chunked_transfer_encoding on;
location / {
proxy_pass http://docker-youtrack;
}
}