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