Created
April 1, 2020 11:10
-
-
Save ThijsFeryn/166a19b53cf9b0fdf452632462ee7417 to your computer and use it in GitHub Desktop.
Varnish docker-compose.yml file that defines container dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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