Skip to content

Update varnish.md #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions content/docker-images/varnish.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ The syntax is as follow :
varnish:
sites:
default:
nodes:
- host: web
port: 8080
nodes:
- host: web
port: 8080
```

#### Load balancer with routing
Expand Down Expand Up @@ -97,7 +97,7 @@ You should also make sure to include `/tmp/directors.vcl` in your VCL to setup t
Assuming you have a working VCL with `default.vcl` in your local `varnish` folder :

```bash
docker run -p 8086:8086 -ti --rm -e YAML_CONF=/yaml.conf -v $(pwd)/config.yaml:/config.yaml -v $(pwd)/varnish:/etc/varnish fpfis/varnish:4.1
docker run -p 8086:8086 -ti --rm -e YAML_CONF=/config.yaml -v $(pwd)/config.yaml:/config.yaml -v $(pwd)/varnish:/etc/varnish fpfis/varnish:4.1
```


Expand All @@ -106,4 +106,4 @@ ___
[![Build Status](https://drone.fpfis.eu/api/badges/fpfis/varnish/status.svg?branch=master)](https://drone.fpfis.eu/fpfis/varnish)
[![Docker Image](https://images.microbadger.com/badges/image/fpfis/varnish:4.1.svg)](https://microbadger.com/images/fpfis/varnish)
[![Docker Image](https://images.microbadger.com/badges/image/fpfis/varnish:6.svg)](https://microbadger.com/images/fpfis/varnish)