Docker 部署AnythingLLM

两个指令搞定

1.下载镜像

 docker pull mintplexlabs/anythingllm

2.运行容器

export STORAGE_LOCATION=$HOME/anythingllm
mkdir -p $STORAGE_LOCATION
chmod -R 777 $STORAGE_LOCATION
touch "$STORAGE_LOCATION/.env"
docker run -d -p 3001:3001 \
--cap-add SYS_ADMIN \
-v ${STORAGE_LOCATION}:/app/server/storage \
-v ${STORAGE_LOCATION}/.env:/app/server/.env \
-e STORAGE_DIR="/app/server/storage" \
mintplexlabs/anythingllm

3.访问项目:http://服务器IP:3001 

完成!!!

你可能感兴趣的:(docker,容器,ai)