All-Hands-AI / OpenHands

🙌 OpenHands: Code Less, Make More
https://all-hands.dev
MIT License
31.25k stars 3.6k forks source link

It would be ideal to have a docker compose solution for this with possible ollama example #3445

Open shreelekhat opened 3 weeks ago

shreelekhat commented 3 weeks ago

What problem or use case are you trying to solve? THis would be ideal to solve any installation issues.

Describe the UX of the solution you'd like Just a working docker-compose.yaml file with options to edit. May be couple of docker-compose examples.

Do you have thoughts on the technical implementation? Use Docker-COmpose

PascPeli commented 3 weeks ago

I am using something like

 openhands:
    image: ghcr.io/opendevin/opendevin
    container_name: openhands_container
    restart: unless-stopped
    pull_policy: always
    stdin_open: true
    tty: true
    environment:
      SANDBOX_USER_ID: 1000
      PERSIST_SANDBOX: "true"
      SSH_PASSWORD: passwd
      LLM_API_KEY: "NA"
      LLM_BASE_URL: "Ollama address:11434" 
      WORKSPACE_MOUNT_PATH: /home/user/workspace
    volumes:
      - /home/user/workspace:/opt/workspace_base
      - /var/run/docker.sock:/var/run/docker.sock
    ports:
      - "3000:3000"
    extra_hosts:
      - "host.docker.internal:host-gateway"
raymondbernard commented 2 weeks ago

version: '3.8'

services: openhands: image: ghcr.io/opendevin/opendevin container_name: openhands_container restart: unless-stopped pull_policy: always stdin_open: true tty: true environment: