opencode-container/docker-compose.yaml
Jeena 39edc252f0 Simplify state persistence
Use use local ./data directory instead of
XDG directories.
2026-01-13 14:47:56 +09:00

29 lines
513 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

services:
opencode:
image: opencode-arch
build:
context: .
dockerfile: Dockerfile
args:
USERNAME: "${USER}"
UID: "${UID}"
GID: "${GID}"
user: "${UID}:${GID}"
working_dir: "${PWD}"
stdin_open: true
tty: true
environment:
HOME: "${PWD}/data"
UID: "${UID}"
GID: "${GID}"
volumes:
# Current project (readwrite)
- "${PWD}:${PWD}"
cap_drop:
- ALL
security_opt:
- no-new-privileges:true