nginx瓦片代理缓存
This commit is contained in:
15
tile-proxy/docker-compose.yml
Normal file
15
tile-proxy/docker-compose.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
services:
|
||||
tile-proxy:
|
||||
image: nginx:alpine
|
||||
ports:
|
||||
- "8080:80"
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
- ./cache:/var/cache/nginx/tiles
|
||||
restart: unless-stopped
|
||||
# 健康检查:每30秒确认代理存活
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO-", "http://localhost/health"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
Reference in New Issue
Block a user