Files
droid2api/docker-compose.yml
1e0n ad862f73d1 Add Docker deployment support
- Add Dockerfile for containerization
- Add docker-compose.yml for easy deployment
- Add .dockerignore to optimize build
- Add .env.example for environment configuration
- Add DOCKER_DEPLOY.md with comprehensive deployment guide

Support for:
- Local Docker deployment
- Cloud platforms (Render, Railway, Fly.io, GCP, AWS)
- Persistent storage configuration
- Health checks and monitoring
2025-10-06 02:17:37 +08:00

23 lines
595 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
version: '3.8'
services:
droid2api:
build: .
container_name: droid2api
ports:
- "3000:3000"
environment:
# 必需设置refresh token
- DROID_REFRESH_KEY=${DROID_REFRESH_KEY}
# 可选如果需要修改端口在config.json中配置
volumes:
# 可选持久化auth.json以保存刷新的tokens
- ./data:/app/data
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s