A dockerfile to quickly deploy AutogenStudio.
-
Clone the AutogenStudio Docker repository:
git clone https://github.com/paysancorrezien/autogenstudio-docker.git
-
Navigate to the
autogenstudio-docker
directory:cd autogenstudio-docker
-
Edit the
.env
file in the same directory with your configuration. For example:OPENAI_API_KEY=your_actual_key PYTHON_VERSION=3.11
Replace
your_actual_key
with your actual OpenAI API key. -
Modify the
docker-compose.yml
if you need specific settings. It should work out of the box.This docker-compose work for me just fine:
version: "4" services: autogenstudio: image: autogenstudio environment: - PYTHON_VERSION=${PYTHON_VERSION} - OPENAI_API_KEY=${OPENAI_API_KEY} ports: - "8001:8001" env_file: - .env volumes: - db_volume:/usr/local/lib/python${PYTHON_VERSION}/site-packages/autogenstudio/web/ - source_volume:/usr/local/lib/python${PYTHON_VERSION}/site-packages/ volumes: db_volume: name: autogenstudio_db source_volume: name: autogenstudio_sources
If you just want to get it running quickly, you can also use :
docker run -p 8001:8001 -e OPENAI_API_KEY=your_actual_key -d autogenstudio
-
Build the Docker image:
docker build -t autogestudio .
-
Run AutogenStudio using Docker Compose:
docker compose up -d
The -d
flag runs the container in detached mode, so it continues to run in the background.
-
To access the AutogenStudio web interface, open a web browser and go to:
http://localhost:8001
You should be able to access AutogenStudio through the web interface.
-
Verify that AutogenStudio is running by checking the logs:
docker-compose logs -f autogenstudio
-
Troubleshooting
To launch shell on container :
docker run -it --entrypoint /bin/bash autogenstudio -s
All the settings are stored in a local database.GitHub Post
The AutogenStudio database is stored in a local Docker volume named autogenstudio_db
. Its where the customs agents/ skills/ workflows are stored.
If you want to export or backup them use the docker volumes
By default, Docker volumes are stored on your local machine. You can find the data in a directory similar to:
/var/lib/docker/volumes/autogenstudio_db/_data
There you should see a database.sqlite
file.