-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (54 loc) · 1.79 KB
/
docker-compose.yml
File metadata and controls
65 lines (54 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '3.8'
services:
mobile-agent-virtual:
build: .
image: mobile-agent-virtual:latest
container_name: mobile-agent-runner
environment:
# Gemini Configuration (required)
- GEMINI_API_KEY=${GEMINI_API_KEY}
- GEMINI_BASE_URL=${GEMINI_BASE_URL:-https://api.dou.chat/v1}
- GEMINI_MODEL=${GEMINI_MODEL:-google/gemini-2.0-flash-exp:free}
# Agent LLM Configuration
- AGENT_MODEL=${AGENT_MODEL}
- AGENT_BASE_URL=${AGENT_BASE_URL:-http://host.docker.internal:4243/v1}
- AGENT_API_KEY=${AGENT_API_KEY:-EMPTY}
- AGENT_NAME=${AGENT_NAME:-mobile_agent_v3}
# Paths
- INITIAL_IMAGE=start_Android.png
- OUTPUT_PATH=/app/outputs
- LOG_PATH=/app/logs
- TRAJ_PATH=/app/trajectories
# Optional
- RESOLUTION=${RESOLUTION:-1080x2400}
volumes:
# Mount output directories
- ./outputs:/app/outputs
- ./logs:/app/logs
- ./trajectories:/app/trajectories
# Mount config (optional)
- ./config:/app/config
# Mount initial image if you want to use custom one
- ./start_Android.png:/app/start_Android.png
# Keep container running for interactive use
stdin_open: true
tty: true
# Override command to run specific tasks
# Uncomment and modify as needed:
# command: python run_virtual.py --tasks social --category message
# For debugging
# command: /bin/bash
# Usage:
#
# 1. Create .env file with your API keys:
# GEMINI_API_KEY=your-key
# AGENT_MODEL=your-model
#
# 2. Build and run:
# docker-compose up --build
#
# 3. Run specific tasks:
# docker-compose run mobile-agent-virtual python run_virtual.py --tasks social
#
# 4. Interactive shell:
# docker-compose run mobile-agent-virtual /bin/bash