-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (28 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
35 lines (28 loc) · 1.06 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
services:
opencode:
image: ghcr.io/FelixClements/opencode-server-docker:latest
container_name: opencode-server
ports:
- "4096:4096"
environment:
# Server Settings
- PORT=4096
- HOSTNAME_OVERRIDE=0.0.0.0 # Default in script, but explicit here
# Discovery
- MDNS=false
- MDNS_DOMAIN=opencode.local
# Security
- OPENCODE_SERVER_PASSWORD=mySecretPass
# CORS (Comma separated list)
- CORS=http://localhost:5173,https://example.com
# Config directory (use OPENCODE_CONFIG env var for custom path)
- OPENCODE_CONFIG_DIR=/data/config
# Custom config file (use OPENCODE_CONFIG env var for custom config file)
- OPENCODE_CONFIG=/data/config/opencode.json
volumes:
# Persistent storage for config, auth, and .opencode directories
- ./opencode-data:/data
# Mount current project directory for OpenCode to access and modify
# Change the source path if your project is in a different location
- .:/workspace
restart: unless-stopped