project-lux / lux-webcache

Varnish cache in front of the middle tier
Other
1 stars 0 forks source link

LUX Web Cache

This application caches web responses from the middle tier. It is not a necessary component of the LUX system -- the frontend can access the middle tier directly if thus set up -- but helps with mitigating performance bottlenecks of the backend database.

It consists of a Varnish Cache instance and an nginx web server running in a docker container. Unconventionally, the nginx server stands between the Varnish cache and the middle tier in order to deal with the limitation of open source Varnish not being able to have multiple IP addresses as the origin (or target, depending on the perspective).

Bulilding and Running a Docker Container

Required Environment Variables for Running

See config.json.template for the list of environment variables that must be set before running the container. For local development, you should copy config.json.template to .config.json, fill in the values, and feed that file to the container following the run-docker-container.sh example.