Added RequestTracker (DEV) container

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2020-01-31 19:05:34 +01:00
parent b242cfdd26
commit a3247a6aff
11 changed files with 146 additions and 0 deletions
@@ -0,0 +1,23 @@
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName {{ rt_domain }}
ServerAdmin {{ admin_mail }}
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLCertificateFile /etc/letsencrypt/live/{{ rt_domain }}/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/{{ rt_domain }}/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
# Encoded slashes need to be allowed
AllowEncodedSlashes NoDecode
# keep the host
ProxyPreserveHost On
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Host "{{ rt_domain }}"
ProxyPass / http://127.0.0.1:8082/
ProxyPassReverse / http://127.0.0.1:8082/
</VirtualHost>
</IfModule>
@@ -0,0 +1,6 @@
<VirtualHost *:80>
ServerName {{ rt_domain }}
ServerAdmin {{ admin_mail }}
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
@@ -0,0 +1,15 @@
version: '2'
services:
rt:
image: netsandbox/request-tracker:latest
ports:
- "8082:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: always
environment:
- RT_WEB_PORT=8082
- LC_ALL=C.UTF-8
- LANG=C.UTF-8