forked from nimbleflux/opencode-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (31 loc) · 940 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (31 loc) · 940 Bytes
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
services:
opencode:
image: ghcr.io/fluxbase-eu/opencode-docker:latest
container_name: opencode
ports:
- "${OPENCODE_PORT:-4000}:4000"
environment:
# Optional server password for authentication
# - OPENCODE_SERVER_PASSWORD=${OPENCODE_SERVER_PASSWORD:-}
{}
volumes:
# Persistent configuration (UI config saved here)
- opencode-config:/home/opencode/.config/opencode
# Session storage, cache, and auth credentials
- opencode-data:/home/opencode/.local/share/opencode
# Working directory for projects
- opencode-workspace:/home/opencode/workspace
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
opencode-config:
driver: local
opencode-data:
driver: local
opencode-workspace:
driver: local