-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (45 loc) · 1.56 KB
/
docker-compose.yml
File metadata and controls
47 lines (45 loc) · 1.56 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
services:
agentree:
build: .
ports:
- "${AGENTREE_PORT:-3001}:3001"
environment:
OPENCODE_API_URL: ${OPENCODE_API_URL:-http://opencode:6543}
OPENCODE_SERVER_USERNAME: ${OPENCODE_SERVER_USERNAME:-opencode}
OPENCODE_SERVER_PASSWORD: ${OPENCODE_SERVER_PASSWORD:-}
DB_PATH: /data/agentree.db
volumes:
- agentree_data:/data
restart: unless-stopped
opencode:
profiles: [with-opencode]
image: ${OPENCODE_IMAGE:-ghcr.io/anomalyco/opencode:latest}
environment:
HOME: /root
OPENCODE_CONFIG_DIR: /root/.config/opencode
OPENCODE_SERVER_PASSWORD: ${OPENCODE_SERVER_PASSWORD:-}
OPENCODE_SERVER_USERNAME: ${OPENCODE_SERVER_USERNAME:-opencode}
OPENCODE_DISABLE_AUTOUPDATE: ${OPENCODE_DISABLE_AUTOUPDATE:-1}
OPENCODE_DISABLE_LSP_DOWNLOAD: ${OPENCODE_DISABLE_LSP_DOWNLOAD:-0}
OPENCODE_EXPERIMENTAL: ${OPENCODE_EXPERIMENTAL:-0}
TZ: ${TZ:-UTC}
volumes:
- ${OPENCODE_WORKSPACE_DIR:-.}:/workspace
- ${OPENCODE_CONFIG_HOST_DIR:-opencode_config}:/root/.config/opencode
- ${OPENCODE_DATA_HOST_DIR:-opencode_data}:/root/.local/share/opencode
ports:
- "${OPENCODE_PORT:-6543}:6543"
working_dir: /workspace
restart: unless-stopped
init: true
command: ["serve", "--hostname", "0.0.0.0", "--port", "6543"]
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:6543/global/health >/dev/null 2>&1"]
interval: 20s
timeout: 5s
retries: 5
start_period: 20s
volumes:
agentree_data:
opencode_config:
opencode_data: