Sign inSign up

keyholesoftware/wordpress-varnish

By keyholesoftware

•Updated about 11 years ago

Varnish setup for workpress

Image
1

3.6K

keyholesoftware/wordpress-varnish repository overview

⁠Varnish environment variables

Varnish will make of the following environment variables.

VARNISH_BACKEND_PORT 80
VARNISH_BACKEND_IP 172.17.42.1
VARNISH_PORT 80
⁠Use the pre built image

The pre built image can be downloaded using docker directly.

$ docker pull keyholesoftware/varnish
⁠Build the docker image by yourself

The Dockerfile and supporting file are held in a private repository.

⁠Start the container

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
⁠Stop the container

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`

Tag summary

Content type

Image

Digest

sha256:dbef3718c…

Size

114.9 MB

Last updated

about 11 years ago

docker pull keyholesoftware/wordpress-varnish