Varnish setup for workpress
3.6K
Varnish will make of the following environment variables.
VARNISH_BACKEND_PORT 80
VARNISH_BACKEND_IP 172.17.42.1
VARNISH_PORT 80
The pre built image can be downloaded using docker directly.
$ docker pull keyholesoftware/varnish
The Dockerfile and supporting file are held in a private repository.
The container has all pre requisites set up to run any varnish application. Specify all needed environment variables.
$ sudo docker run -i -d -p 80:80 -e VARNISH_BACKEND_PORT=8080 -VARNISH_BACKEND_IP:127.0.0.1 keyholesoftware/varnish
Stopping a running container is possible via the docker api. If only one instance of this container is running this command will stop it:
$ sudo docker stop `sudo docker ps |grep keyholesoftware/varnish |cut -d\ -f1`
Content type
Image
Digest
sha256:dbef3718c…
Size
114.9 MB
Last updated
about 11 years ago
docker pull keyholesoftware/wordpress-varnish