compose.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. services:
  3. dev:
  4. privileged: true
  5. build:
  6. context: ${OPENHANDS_WORKSPACE:-../../}
  7. dockerfile: ./containers/dev/Dockerfile
  8. image: openhands:dev
  9. container_name: openhands-dev
  10. environment:
  11. - BACKEND_HOST=${BACKEND_HOST:-"0.0.0.0"}
  12. - SANDBOX_API_HOSTNAME=host.docker.internal
  13. #
  14. - SANDBOX_RUNTIME_CONTAINER_IMAGE=${SANDBOX_RUNTIME_CONTAINER_IMAGE:-ghcr.io/all-hands-ai/runtime:0.15-nikolaik}
  15. - SANDBOX_USER_ID=${SANDBOX_USER_ID:-1234}
  16. - WORKSPACE_MOUNT_PATH=${WORKSPACE_BASE:-$PWD/workspace}
  17. ports:
  18. - "3000:3000"
  19. extra_hosts:
  20. - "host.docker.internal:host-gateway"
  21. volumes:
  22. - /var/run/docker.sock:/var/run/docker.sock
  23. - ${WORKSPACE_BASE:-$PWD/workspace}:/opt/workspace_base
  24. # source code
  25. - ${OPENHANDS_WORKSPACE:-../../}:/app
  26. # host credentials
  27. - $HOME/.git-credentials:/root/.git-credentials:ro
  28. - $HOME/.gitconfig:/root/.gitconfig:ro
  29. - $HOME/.npmrc:/root/.npmrc:ro
  30. # cache
  31. - cache-data:/root/.cache
  32. pull_policy: never
  33. stdin_open: true
  34. tty: true
  35. ##
  36. volumes:
  37. cache-data: