-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
142 lines (136 loc) · 3.23 KB
/
docker-compose.yml
File metadata and controls
142 lines (136 loc) · 3.23 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
name: autoweave
x-autoweave-common-env: &autoweave-common-env
VERTEXAI_LOCATION: ${VERTEXAI_LOCATION:-global}
VERTEXAI_SERVICE_ACCOUNT_FILE: ./config/secrets/vertex_service_account.json
GOOGLE_APPLICATION_CREDENTIALS: ./config/secrets/vertex_service_account.json
REDIS_URL: redis://redis:6379/0
ARTIFACT_STORE_URL: file:///data
services:
redis:
image: redis:7.4-alpine
command:
- redis-server
- --appendonly
- "yes"
- --save
- "60"
- "1"
ports:
- "6379:6379"
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 20
restart: unless-stopped
artifact-store:
image: alpine:3.20
command:
- sh
- -lc
- mkdir -p /data && tail -f /dev/null
volumes:
- ./var/artifacts:/data
healthcheck:
test: ["CMD", "test", "-d", "/data"]
interval: 5s
timeout: 3s
retries: 5
restart: unless-stopped
autoweave-runtime:
build:
context: .
dockerfile: Dockerfile
image: autoweave-runtime:local
env_file:
- path: .env
required: false
- path: .env.local
required: false
command:
- sh
- -lc
- sleep infinity
working_dir: /workspace
depends_on:
redis:
condition: service_healthy
artifact-store:
condition: service_healthy
openhands-agent-server:
condition: service_healthy
environment:
<<: *autoweave-common-env
AUTOWEAVE_RUNTIME_ROOT: /workspace
OPENHANDS_AGENT_SERVER_BASE_URL: http://openhands-agent-server:8000
PYTHONUNBUFFERED: "1"
ports: []
volumes:
- ./:/workspace:rw
- ./var/artifacts:/data
extra_hosts:
- host.docker.internal:host-gateway
healthcheck:
test:
[
"CMD",
"python",
"-m",
"apps.cli.main",
"validate",
"--root",
"/workspace",
]
interval: 30s
timeout: 15s
retries: 10
restart: unless-stopped
openhands-agent-server:
image: ghcr.io/openhands/agent-server:latest-python
env_file:
- path: .env
required: false
- path: .env.local
required: false
command:
- --host
- 0.0.0.0
- --port
- "8000"
working_dir: /workspace
depends_on:
redis:
condition: service_healthy
artifact-store:
condition: service_healthy
environment:
LOG_ALL_EVENTS: "true"
SANDBOX_USER_ID: ${UID:-1000}
SANDBOX_VOLUMES: ${PWD:-.}:${PWD:-.}:rw
<<: *autoweave-common-env
OPENHANDS_AGENT_SERVER_BASE_URL: http://127.0.0.1:8000
ports:
- "8000:8000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./:/workspace:rw
- ./:${PWD:-.}:rw
- ./var/artifacts:/data
extra_hosts:
- host.docker.internal:host-gateway
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=5).read()",
]
interval: 10s
timeout: 5s
retries: 12
restart: unless-stopped
volumes:
redis-data: {}