forked from 123FLO321/SwiftTileserverCache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
32 lines (32 loc) · 1.17 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: '3.1'
services:
tileserver:
image: klokantech/tileserver-gl:latest
container_name: tileserver
restart: unless-stopped
tty: true
volumes:
- ./TileServer:/data
cache:
image: 0815flo/swifttileservercache:latest
container_name: tileserver-cache
restart: unless-stopped
tty: true
volumes:
- ./Cache:/SwiftTileserverCache/Cache
- ./Templates:/SwiftTileserverCache/Templates
# - ./Markers/:/SwiftTileserverCache/Markers
environment:
TILE_SERVER_URL: http://tileserver # Leave this unless tileserver is external!
TILE_CACHE_MAX_AGE_MINUTES: 10080 # 7 Days
TILE_CACHE_DELAY_SECONDS: 3600 # 1 Hour
STATIC_CACHE_MAX_AGE_MINUTES: 10080 # 7 Days
STATIC_CACHE_DELAY_SECONDS: 3600 # 1 Hour
STATIC_MUTLI_CACHE_MAX_AGE_MINUTES: 60 # 1 Hour
STATIC_MULTI_CACHE_DELAY_SECONDS: 900 # 15 Minutes
MARKER_CACHE_MAX_AGE_MINUTES: 1440 # 1 Day
MARKER_CACHE_DELAY_SECONDS: 3600 # 1 Hour
TEMPLATES_CACHE_DELAY_SECONDS: 60 # 1 Minute
# TILE_URL_MAPBOX_SATTELITE: https://api.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}{@scale}.{format}?access_token=xxx
ports:
- 9000:9000