Open WangShuXian6 opened 1 year ago
新建空目录
/opt/metagpt/config
和/opt/metagpt/workspace
下载https://github.com/geekan/MetaGPT/blob/main/config/config.yaml
放入./opt/metagpt/config
文件夹 复制config.yaml
,重命名为key.yaml
,在key.yaml
内加入 ChatGPT API .[非必须,只是key.yaml优先级高于config.yaml] 配置OPENAI_API_KEY
,必填,需要GPT4,更换后需要重启容器 配置OPENAI_API_BASE
ChimeraGPT 必填
version: '3'
services:
metagpt:
image: metagpt/metagpt:v0.3
restart: always
#environment:
#OPENAI_API_KEY: xxx
volumes:
#https://github.com/geekan/MetaGPT/blob/main/config/config.yaml 放入./opt/metagpt/config 文件夹
- ./opt/metagpt/config:/app/metagpt/config
#空文件夹
- ./opt/metagpt/workspace:/app/metagpt/workspace
container_name: metagpt
privileged: true
#docker-compose up -d
#docker exec -it metagpt /bin/bash # 进入容器
#python startup.py "Write a cli snake game" # 在容器内运行metagpt
docker-compose up -d
docker exec -it metagpt /bin/bash # 进入容器
python startup.py "Write a cli snake game" # 在容器内运行metagpt
MetaGPT