version: "3.8" # Android模拟器 + SDK服务完整测试环境 # 启动: docker compose -f docker-compose.android.yml up -d services: # Android模拟器(模拟红米13) android-emulator: image: budtmo/docker-android:emulator_14.0 container_name: workphone-android privileged: true environment: - EMULATOR_DEVICE=Samsung Galaxy S10 - WEB_VNC=true - WEB_LOG=true - DATAPARTITION=4g ports: - "6080:6080" # noVNC网页查看 - "5554:5554" # ADB端口 - "5555:5555" # ADB端口 volumes: - android-data:/root/.android healthcheck: test: ["CMD", "adb", "shell", "getprop", "sys.boot_completed"] interval: 30s timeout: 10s retries: 10 start_period: 120s networks: - workphone-network # SDK服务 workphone-sdk: build: . container_name: workphone-sdk environment: - API_KEY=${API_KEY:-workphone-secret-key-2026} - DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY:-} - ADB_HOST=android-emulator ports: - "8899:8899" depends_on: - android-emulator healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8899/health"] interval: 30s timeout: 10s retries: 3 networks: - workphone-network volumes: android-data: networks: workphone-network: driver: bridge