This currently is just a regular Varnish server.
BACKEND_HOST: The hostname of the backend serviceBACKEND_PORT: The port of the backend service
In a docker-compose.yml it must be wired like this:
frontendcache:
image: bluespice/frontendcache:5
environment:
BACKEND_HOST: wiki-web
BACKEND_PORT: 9090
VIRTUAL_HOST: ${WIKI_HOST}
VIRTUAL_PORT: 80
VIRTUAL_PATH: /
tmpfs:
- /var/lib/varnish/varnishd:exec
depends_on:
- wiki-webMake sure to remove VIRTUAL_HOST, VIRTUAL_PORT and VIRTUAL_PATH from the wiki-web service!
docker build --no-cache --pull -t bluespice/frontendcache:latest .HINT: We align the image tags with the version of BlueSpice that it is compatible with.
Example:
docker tag bluespice/frontendcache:latest bluespice/frontendcache:5
docker tag bluespice/frontendcache:latest bluespice/frontendcache:5.2
docker tag bluespice/frontendcache:latest bluespice/frontendcache:5.2.1Example:
docker push bluespice/frontendcache:latest
docker push bluespice/frontendcache:5
docker push bluespice/frontendcache:5.2
docker push bluespice/frontendcache:5.2.1Install trivy and run trivy image bluespice/frontendcache to check for vulnerabilities.