-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Expand file tree
/
Copy pathdocker-compose.opencode.local.yml
More file actions
49 lines (47 loc) · 1.84 KB
/
docker-compose.opencode.local.yml
File metadata and controls
49 lines (47 loc) · 1.84 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
services:
opencode:
build:
context: .
dockerfile: docker/opencode.Dockerfile
restart: unless-stopped
ports:
- '${OPENCODE_PORT:-4096}:${OPENCODE_PORT:-4096}'
expose:
- '4096'
environment:
- OPENCODE_PORT=${OPENCODE_PORT:-4096}
- OPENCODE_REPOSITORY_ROOT=${OPENCODE_REPOSITORY_ROOT:-/app/repos}
- OPENCODE_SERVER_USERNAME=${OPENCODE_SERVER_USERNAME:-opencode}
- OPENCODE_SERVER_PASSWORD=${OPENCODE_SERVER_PASSWORD:-dev-opencode-password}
- OPENCODE_REPOS=${OPENCODE_REPOS:-}
- GIT_USERNAME=${GIT_USERNAME:-}
- GIT_TOKEN=${GIT_TOKEN:-}
- GITHUB_TOKEN=${GITHUB_TOKEN:-}
- OPENAI_API_KEY=${OPENAI_API_KEY:-${OPENAI_API_KEY_1:-}}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-${ANTHROPIC_API_KEY_1:-}}
- GEMINI_API_KEY=${GEMINI_API_KEY:-${GEMINI_API_KEY_1:-}}
- GOOGLE_GENERATIVE_AI_API_KEY=${GOOGLE_GENERATIVE_AI_API_KEY:-${GEMINI_API_KEY:-${GEMINI_API_KEY_1:-}}}
volumes:
- opencode_repos:${OPENCODE_REPOSITORY_ROOT:-/app/repos}
- opencode_data:/home/opencode/.local/share/opencode
healthcheck:
test: ['CMD', '/usr/local/bin/opencode-healthcheck.sh']
interval: 90s
timeout: 5s
retries: 3
start_period: 15s
simstudio:
environment:
- NEXT_PUBLIC_OPENCODE_ENABLED=${NEXT_PUBLIC_OPENCODE_ENABLED:-true}
- OPENCODE_BASE_URL=${OPENCODE_BASE_URL:-http://opencode:${OPENCODE_PORT:-4096}}
- OPENCODE_PORT=${OPENCODE_PORT:-4096}
- OPENCODE_REPOSITORY_ROOT=${OPENCODE_REPOSITORY_ROOT:-/app/repos}
- OPENCODE_SERVER_USERNAME=${OPENCODE_SERVER_USERNAME:-opencode}
- OPENCODE_SERVER_PASSWORD=${OPENCODE_SERVER_PASSWORD:-dev-opencode-password}
- OPENCODE_REPOS=${OPENCODE_REPOS:-}
depends_on:
opencode:
condition: service_healthy
volumes:
opencode_data:
opencode_repos: