-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
40 lines (40 loc) · 1.39 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
33
34
35
36
37
38
39
40
version: '3.1'
services:
tileserver:
image: maptiler/tileserver-gl:latest
command: -p 8080
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
- ./TileServer:/SwiftTileserverCache/TileServer
- ./Markers/:/SwiftTileserverCache/Markers
environment:
TILE_SERVER_URL: http://tileserver:8080 # 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
# REGENERATABLE_CACHE_MAX_AGE_MINUTES: 43200 # 1 Month
# REGENERATABLE_CACHE_DELAY_SECONDS: 3600 # 1 Hour
TEMPLATES_CACHE_DELAY_SECONDS: 60 # 1 Minute
# ADMIN_USERNAME: admin
# ADMIN_PASSWORD: ChangeMe!
# PREVIEW_LATIDUDE: 47.377105
# PREVIEW_LONGITUDE: 8.541655
# MAX_BODY_SIZE: 1mb
ports:
- 9000:9000