mirror of
https://github.com/tiennm99/composes.git
synced 2026-10-04 16:13:42 +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.
16 lines
450 B
YAML
16 lines
450 B
YAML
services:
|
|
openhands:
|
|
image: 'ghcr.io/openhands/openhands:latest'
|
|
environment:
|
|
- AGENT_SERVER_IMAGE_REPOSITORY=ghcr.io/openhands/agent-server
|
|
- AGENT_SERVER_IMAGE_TAG=1.26.0-python
|
|
- TZ=Asia/Ho_Chi_Minh
|
|
- LOG_ALL_EVENTS=true
|
|
extra_hosts:
|
|
- 'host.docker.internal:host-gateway'
|
|
volumes:
|
|
- 'openhands-state:/.openhands'
|
|
- '/var/run/docker.sock:/var/run/docker.sock'
|
|
volumes:
|
|
openhands-state:
|