Files
workphone-sdk/sdk/docker-compose.yml

41 lines
1023 B
YAML

# 工作手机SDK v3.0 - Docker Compose配置
# 使用现有的MongoDB(27017)和Redis(6379)
version: '3.8'
services:
# ========== SDK主服务 ==========
workphone-sdk:
build:
context: .
dockerfile: Dockerfile
container_name: workphone-sdk
restart: unless-stopped
ports:
- "8899:8899" # REST API + WebSocket
environment:
- ENV=production
- MONGO_URI=mongodb://admin:admin123@host.docker.internal:27017
- MONGO_DB=workphone_sdk
- REDIS_URL=redis://host.docker.internal:6379/1
- DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY:-}
- API_KEY=${API_KEY:-workphone-secret-key}
volumes:
- ./app:/app
- ./frida_scripts:/app/frida_scripts
- workphone_data:/data
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8899/health"]
interval: 30s
timeout: 10s
retries: 3
volumes:
workphone_data:
networks:
default:
name: workphone-network