Running LogAnalyzer (http://loganalyzer.adiscon.com/downloads/). You should expose /var/log to the container (e.g. from a running rsyslog container)
To provide a correct ssl certificate and key, mount them in
- /etc/pki/tls/certs/server.crt
- /etc/pki/tls/private/server.key
- /etc/pki/tls/certs/chain.crt (if you need a certificate chain)
Set the enviromnemt variable SERVERNAME to math thew server name to the certificate.
Variable | Purpose |
---|---|
SERVERNAME | Specify the Servername for the VHost, this should match the SSL certificate |
SERVERALIAS | Specify ServerAlias directive for the VHost, the entries should match the SSL certificate |
docker run -d -p 443:443 \
-v /data/loganalyzer/var/www/html/include/config.php:/var/www/html/include/config.php \
-v /data/rsyslog/var/log:/var/log \
registry.ott-consult.de/oc/loganalyzer:latest
docker run -d -p 443:443 \
-e LOCK=yes \
-e SERVERNAME=logs.example.com \
-e SERVERALIAS=example.com \
-v /etc/pki/tls/certs/logs.example.com.crt:/etc/pki/tls/certs/server.crt \
-v /etc/pki/tls/certs/chain.example.com.crt:/etc/pki/tls/certs/chain.crt \
-v /etc/pki/tls/private/logs.example.com.key:/etc/pki/tls/private/server.key \
-v /data/loganalyzer/var/www/html/include/config.php:/var/www/html/include/config.php \
-v /data/rsyslog/var/log:/var/log \
registry.ott-consult.de/oc/loganalyzer:latest