mirror of
https://github.com/tiennm99/composes.git
synced 2026-10-04 20:13:20 +00:00
openhands runs each agent session in a container it spawns through the host docker socket, so the socket is mounted read-write and host.docker.internal is resolved. No host workspace is exposed. opencode-web serves the opencode agent as a browser UI. The vendor image ships only the opencode binary on bare Alpine, so a local Dockerfile adds bash, git, curl and an ssh client.
24 lines
585 B
YAML
24 lines
585 B
YAML
services:
|
|
opencode-web:
|
|
build: .
|
|
command:
|
|
- web
|
|
- '--hostname'
|
|
- 0.0.0.0
|
|
- '--port'
|
|
- '4096'
|
|
environment:
|
|
- OPENCODE_SERVER_PASSWORD=${OPENCODE_SERVER_PASSWORD}
|
|
- OPENCODE_SERVER_USERNAME=${OPENCODE_SERVER_USERNAME}
|
|
- TZ=Asia/Ho_Chi_Minh
|
|
- GIT_AUTHOR_NAME=${GIT_NAME}
|
|
- GIT_AUTHOR_EMAIL=${GIT_EMAIL}
|
|
- GIT_COMMITTER_NAME=${GIT_NAME}
|
|
- GIT_COMMITTER_EMAIL=${GIT_EMAIL}
|
|
volumes:
|
|
- 'opencode-home:/root'
|
|
- 'opencode-workspace:/workspace'
|
|
volumes:
|
|
opencode-home:
|
|
opencode-workspace:
|