forked from preset-io/agor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (47 loc) · 1.85 KB
/
docker-compose.yml
File metadata and controls
51 lines (47 loc) · 1.85 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
services:
agor-dev:
build:
context: .
dockerfile: Dockerfile.dev
# No container_name - allows multiple instances via docker compose -p flag
ports:
# Expose daemon port (so browser can connect) - configurable via DAEMON_PORT
- '${DAEMON_PORT:-3030}:${DAEMON_PORT:-3030}'
# Expose UI port (configurable via UI_PORT env var)
- '${UI_PORT:-5173}:${UI_PORT:-5173}'
environment:
# Daemon configuration
- NODE_ENV=development
- DAEMON_PORT=${DAEMON_PORT:-3030}
- CORS_ORIGIN=${CORS_ORIGIN:-}
# UI configuration
- UI_PORT=${UI_PORT:-5173}
# UI connects to daemon via localhost (inside container)
- VITE_DAEMON_PORT=${DAEMON_PORT:-3030}
# Seed development fixtures (optional, set SEED=true to populate test data)
# Creates: Agor repo (https://github.com/preset-io/agor.git) + test-worktree
- SEED=${SEED:-false}
# Pass through API keys from host (if set)
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- GEMINI_API_KEY=${GEMINI_API_KEY:-}
volumes:
# Mount entire repo for hot-reload (but exclude node_modules)
- .:/app
# Exclude all node_modules directories (use container's versions)
- /app/node_modules
- /app/apps/agor-daemon/node_modules
- /app/apps/agor-cli/node_modules
- /app/apps/agor-ui/node_modules
- /app/packages/core/node_modules
# Persist entire home directory (database, config, agent auth tokens, etc.)
- agor-home:/home/agor
# Mount SSH keys for git authentication (dev only)
- ~/.ssh:/home/agor/.ssh:ro
stdin_open: true
tty: true
volumes:
# Named volume - unique per docker-compose project
# Use -p flag to create separate volumes per worktree
# Persists: database, config, agent auth tokens, caches, etc.
agor-home: