anythingllm、open-webui迁移
docker run -d --name anythingllm --add-host=host.docker.internal:host-gateway --env STORAGE_DIR=/app/server/storage --health-cmd "/bin/bash /usr/local/bin/docker-healthcheck.sh || exit 1" --health-interval 60s --health-start-period 60s --health-timeout 10s -p 3001:3001 --restart=always --user anythingllm -v "C:\Users\Administrator\Documents\anythingllm":/app/server/storage -v "C:\Users\Administrator\Documents\anythingllm\.env":/app/server/.env -w /app mintplexlabs/anythingllm我的docker如果卸载了,如果数据保留,可以直接使用上述运行,可以直接进行账户和内容迁移。
数据保存到 D:\WSL\data\open-webui文件夹中,命令如下:
docker run -d -p 3000:8080 --gpus all --add-host=host.docker.internal:host-gateway --health-cmd "curl -fsSL http://localhost:8080 || exit 1" --health-interval 60s --health-retries 5 --health-timeout 20s --health-start-period 60s --restart=always -v D:\WSL\data\open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:cudaversion: '3.8'
services:
open-webui:
image: ghcr.io/open-webui/open-webui:cuda
container_name: open-webui
restart: always
ports:
- "3000:8080"
volumes:
- ./data:/app/backend/data
healthcheck:
test: ["CMD", "curl", "-fsSL", "http://localhost:8080"]
interval: 60s
timeout: 20s
retries: 5
start_period: 60s
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
labels:
- "com.centurylinklabs.watchtower.enable=true"
watchtower:
image: containrrr/watchtower
container_name: watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 300 --cleanup --label-enable
评论
发表评论