agent-zero icon indicating copy to clipboard operation
agent-zero copied to clipboard

Install process too long, please add a docker-compose.yml file

Open kneelesh48 opened this issue 1 year ago • 1 comments

I noticed this project already has a Dockerfile.

We can fully dockerize it by having a docker-compose file Then the project can be installed with a single command docker compose up -d I recommend hosting the docker image on GHCR or docker hub so the user doesn't have to build the repo on every pull

kneelesh48 avatar Sep 17 '24 14:09 kneelesh48

PR welcome, if you can maintain the customizability, access to prompts and files, and solve docker in docker issues. Others have tried.

frdel avatar Sep 18 '24 05:09 frdel

I don't really see the problem to convert a docker run command into a docker-compose.yml file

i.e. see here: https://docker-compose.net/m6a26bw2

And I see you also need to mount the docker socket: volumes: - /var/run/docker.sock:/var/run/docker.sock

ovizii avatar Feb 20 '25 14:02 ovizii

A0 runs fully in docker since 0.8

frdel avatar Feb 20 '25 15:02 frdel

A0 runs fully in docker since 0.8

Yes? I am confused now. Did I misunderstand something?

Your installation instructions walk us through a manual installation using docker desktop and showing a docker run command: docker run -p $PORT:80 -v /path/to/your/data:/a0 frdel/agent-zero-run

The other person and me were looking for a compose file, i.e. something along the lines of:

services:

  agent-zero:
    image: frdel/agent-zero-run:latest
    container_name: agent-zero
    hostname: agent-zero
    ports:
      - 192.168.98.2:4022:22
      - 192.168.98.2:4080:80
      - ./a0:/a0
      - /var/run/docker.sock:/var/run/docker.sock
    restart: "no"
    cpus: 4
    mem_limit: 10G

ovizii avatar Feb 20 '25 15:02 ovizii

I second this!

Is there a docker-compose setup ready to be deployed?

injeolmibingsoo avatar Jul 05 '25 11:07 injeolmibingsoo

A0 runs fully in docker since 0.8

Yes? I am confused now. Did I misunderstand something?

Your installation instructions walk us through a manual installation using docker desktop and showing a docker run command: docker run -p $PORT:80 -v /path/to/your/data:/a0 frdel/agent-zero-run

The other person and me were looking for a compose file, i.e. something along the lines of:

services:

  agent-zero:
    image: frdel/agent-zero-run:latest
    container_name: agent-zero
    hostname: agent-zero
    ports:
      - 192.168.98.2:4022:22
      - 192.168.98.2:4080:80
      - ./a0:/a0
      - /var/run/docker.sock:/var/run/docker.sock
    restart: "no"
    cpus: 4
    mem_limit: 10G

Is this working?

injeolmibingsoo avatar Jul 05 '25 11:07 injeolmibingsoo