-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
20 lines (20 loc) · 747 Bytes
/
Copy pathcompose.yml
File metadata and controls
20 lines (20 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
services:
opencode:
image: ghcr.io/brockar/opencoded:latest
hostname: opencoded
user: "${UID:-1000}:${GID:-1000}"
working_dir: /workspace
stdin_open: true
tty: true
environment:
GH_TOKEN: ${GH_TOKEN:-}
OPENCODE_SERVER_USERNAME: ${OPENCODE_SERVER_USERNAME:-opencode}
OPENCODE_SERVER_PASSWORD: ${OPENCODE_SERVER_PASSWORD:-}
volumes:
- ./:/workspace
- ${HOME}/.ssh/id_ed25519:/home/opencoded/.ssh/id_ed25519:ro
- ${HOME}/.config/opencode:/home/opencoded/.config/opencode
- ${HOME}/.local/share/opencode/auth.json:/home/opencoded/.local/share/opencode/auth.json
ports:
- "${OPENCODE_PORT:-4096}:4096"
command: ["web", "--hostname", "0.0.0.0", "--port", "4096"]