31 lines
842 B
YAML
31 lines
842 B
YAML
|
|
services:
|
||
|
|
tileserver:
|
||
|
|
image: maptiler/tileserver-gl:latest
|
||
|
|
container_name: rd13_tileserver
|
||
|
|
expose:
|
||
|
|
- "8080"
|
||
|
|
volumes:
|
||
|
|
- ./data:/data
|
||
|
|
- ./config/config.json:/data/config.json:ro
|
||
|
|
command: ["--config", "/data/config.json", "--port", "8080", "--verbose"]
|
||
|
|
restart: unless-stopped
|
||
|
|
healthcheck:
|
||
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/health"]
|
||
|
|
interval: 30s
|
||
|
|
timeout: 10s
|
||
|
|
retries: 3
|
||
|
|
start_period: 20s
|
||
|
|
|
||
|
|
nginx:
|
||
|
|
image: nginx:alpine
|
||
|
|
container_name: rd13_tileserver_proxy
|
||
|
|
ports:
|
||
|
|
- "${TILE_PORT:-8080}:80"
|
||
|
|
volumes:
|
||
|
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||
|
|
- ./nginx/cors.conf:/etc/nginx/cors.conf:ro
|
||
|
|
depends_on:
|
||
|
|
tileserver:
|
||
|
|
condition: service_healthy
|
||
|
|
restart: unless-stopped
|