Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ThijsFeryn
Created April 1, 2020 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThijsFeryn/166a19b53cf9b0fdf452632462ee7417 to your computer and use it in GitHub Desktop.
Save ThijsFeryn/166a19b53cf9b0fdf452632462ee7417 to your computer and use it in GitHub Desktop.
Varnish docker-compose.yml file that defines container dependencies
version: '3'
services:
echo-server:
image: "jmalloc/echo-server:latest"
container_name: origin
hostname: origin
ports:
- "8080:8080"
varnish:
image: "varnish:latest"
container_name: varnish
hostname: varnish
volumes:
- ./config/default.vcl:/etc/varnish/default.vcl
ports:
- "80:80"
depends_on:
- "origin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment