mirror of
https://github.com/tiennm99/composes.git
synced 2026-10-14 02:15:46 +00:00
feat: add openhands and opencode-web services
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.
This commit is contained in:
1 parent
3574c55e0a
commit
99f4f8b820
7 files changed
+262
No files matched your search
@@ -0,0 +1,23 @@
|
||||
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:
|
||||
Reference in new issue
Block a user