1
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main

anythingllm

安装

github 文档:https://github.com/Mintplex-Labs/anything-llm

前置

1
2
3
export STORAGE_LOCATION=$HOME/anythingllm && \
mkdir -p $STORAGE_LOCATION && \
touch "$STORAGE_LOCATION/.env" && \

image-20240726115812507

查看用户的uidgid

1
2
@ai:~/docker# id
uid=0(root) gid=0(root) groups=0(root),998(ollama)

非默认用户不是1000,我的是Ubuntu22.04 系统 sudo 提升的权限,所以需要设置

1
chown -R 1000:1000 $STORAGE_LOCATION

docker-cli

1
2
3
4
5
6
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

docker-compose 安装

创建 文件 .env

1
STORAGE_LOCATION=$HOME/anythingllm

docker-compose

这里使用的Docker Compose version v2.29.1,所以不需要加version属性

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
services:
anythingllm:
image: mintplexlabs/anythingllm
container_name: anythingllm
ports:
- "3001:3001"
cap_add:
- SYS_ADMIN
volumes:
- ${STORAGE_LOCATION}:/app/server/storage
- ${STORAGE_LOCATION}/.env:/app/server/.env
environment:
- STORAGE_DIR=/app/server/storage
extra_hosts:
- "host.docker.internal:host-gateway"
1
docker compose -f docker-compose.yml up -d