Skip to content

Instantly share code, notes, and snippets.

@smellman
Created July 7, 2017 11:41
Show Gist options
  • Select an option

  • Save smellman/e6e839fa1cc10e7e2008f9a7bf72aa70 to your computer and use it in GitHub Desktop.

Select an option

Save smellman/e6e839fa1cc10e7e2008f9a7bf72aa70 to your computer and use it in GitHub Desktop.
tileserver-gl + varnish + docker-compose
version: '2'
services:
varnish:
image: eeacms/varnish
ports:
- "6081:6081"
depends_on:
- raster-tileserver
environment:
BACKENDS: "raster-tileserver"
BACKENDS_PORT: "80"
BACKENDS_PROBE_INTERVAL: "10s"
BACKENDS_PROBE_TIMEOUT: "2s"
DNS_ENABLED: "true"
restart: always
vector-tileserver:
image: klokantech/tileserver-gl
ports:
- "8080:80"
volumes:
- .:/data
restart: always
raster-tileserver:
image: klokantech/tileserver-gl
volumes:
- .:/data
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment