forked from simstudioai/sim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.opencode.yml
More file actions
47 lines (45 loc) · 1.87 KB
/
docker-compose.opencode.yml
File metadata and controls
47 lines (45 loc) · 1.87 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:
opencode:
build:
context: .
dockerfile: docker/opencode.Dockerfile
restart: unless-stopped
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:?OPENCODE_SERVER_PASSWORD is required for docker-compose.opencode.yml}
- 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:?OPENCODE_SERVER_PASSWORD is required for docker-compose.opencode.yml}
- OPENCODE_REPOS=${OPENCODE_REPOS:-}
depends_on:
opencode:
condition: service_healthy
volumes:
opencode_data:
opencode_repos: