mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 05:37:20 +08:00
25 lines
927 B
YAML
25 lines
927 B
YAML
|
|
services:
|
|
openhands:
|
|
build:
|
|
context: ./
|
|
dockerfile: ./containers/app/Dockerfile
|
|
image: openhands:latest
|
|
container_name: openhands-app-${DATE:-}
|
|
environment:
|
|
- AGENT_SERVER_IMAGE_REPOSITORY=${AGENT_SERVER_IMAGE_REPOSITORY:-ghcr.io/openhands/agent-server}
|
|
- AGENT_SERVER_IMAGE_TAG=${AGENT_SERVER_IMAGE_TAG:-1.12.0-python}
|
|
#- SANDBOX_USER_ID=${SANDBOX_USER_ID:-1234} # enable this only if you want a specific non-root sandbox user but you will have to manually adjust permissions of ~/.openhands for this user
|
|
- WORKSPACE_MOUNT_PATH=${WORKSPACE_BASE:-$PWD/workspace}
|
|
ports:
|
|
- "3000:3000"
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ~/.openhands:/.openhands
|
|
- ${WORKSPACE_BASE:-$PWD/workspace}:/opt/workspace_base
|
|
pull_policy: build
|
|
stdin_open: true
|
|
tty: true
|