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.
18 lines
593 B
Bash
18 lines
593 B
Bash
# Copy to .env and fill in. Never commit .env.
|
|
#
|
|
# cp .env.example .env
|
|
|
|
# Web UI and API login password. MUST NOT be blank -- opencode serves the web
|
|
# interface, and with it a shell on this container, to anyone when
|
|
# OPENCODE_SERVER_PASSWORD is unset.
|
|
# Generate one with: openssl rand -base64 24
|
|
OPENCODE_SERVER_PASSWORD=
|
|
|
|
# Username to pair with it. opencode defaults to `opencode` when unset.
|
|
OPENCODE_SERVER_USERNAME=opencode
|
|
|
|
# Git identity for the commits the agent makes, as author and committer. git
|
|
# reads these directly, so no `git config` step is needed.
|
|
GIT_NAME=
|
|
GIT_EMAIL=
|