Public Repository

Last pushed: 2 years ago
Short Description
Varnish setup for workpress
Full Description

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`
Docker Pull Command
Owner
keyholesoftware