nginx瓦片代理缓存

This commit is contained in:
龙澳
2026-03-31 15:56:51 +08:00
parent 806c16412a
commit 2e8b9cd83f
7 changed files with 76 additions and 65 deletions

View 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