AutoGPT 셀프 호스팅 — Docker Compose와 Makefile
AutoGPT 셀프 호스팅 — Docker Compose와 Makefile
로컬에서 직접 AutoGPT를 돌리려면 공식 설정 스크립트가 가장 간편해요. 의존성(Docker 등) 설치부터 코드 최신화, 앱 기동까지 자동으로 처리해 주거든요.
출처: https://agpt.co/docs/platform/self-hosting/getting-started.md
자동 설치 스크립트
macOS/Linux:
curl -fsSL https://setup.agpt.co/install.sh -o install.sh && bash install.sh
Windows(PowerShell):
powershell -c "iwr https://setup.agpt.co/install.bat -o install.bat; ./install.bat"
수동 설정
저장소를 클론한 뒤 진행해요.
git clone https://github.com/Significant-Gravitas/AutoGPT.git
cd AutoGPT/autogpt_platform
cp .env.default .env
docker compose up -d --build
Makefile로 자주 쓰는 작업
make init-env—.env.default에서 없던.env생성make start-core— 코어 서비스(Postgres, Redis, RabbitMQ) 백그라운드 기동make migrate— 백엔드 DB 마이그레이션make run-backend— 백엔드 FastAPI 서버 실행make run-frontend— 프론트엔드 Next.js 개발 서버 실행
기본 포트는 프론트엔드 3000, 백엔드 웹소켓 8001, Execution API 8006이에요.
새 에이전트 블록 추가
blocks(backend.blocks) 모듈에서 Block을 상속하고 input_schema, output_schema(Pydantic), run 메서드, test_input·test_output을 정의해요.
더 알아보기
- 단일 컨테이너 실행: https://agpt.co/docs/platform/self-hosting/single-container.md
- Makefile 전체 목록:
make help