CÔNG CỤ · TIỆN ÍCH DEV
Docker Run → Compose
Miễn phíChạy trong trình duyệtREADME hay cho một lệnh docker run dài ngoằng. Dán vào đây để có file compose.yaml gọn gàng, dễ sửa và chạy lại bằng một lệnh.
compose.yaml
Lưu vào thư mục dự án rồi chạy lệnh bên dưới.
services:
ollama:
image: ollama/ollama
container_name: ollama
ports:
- "11434:11434"
volumes:
- ollama:/root/.ollama
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: ["gpu"]
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
restart: always
ports:
- "3000:8080"
volumes:
- open-webui:/app/backend/data
extra_hosts:
- host.docker.internal:host-gateway
volumes:
ollama:
name: ollama
open-webui:
name: open-webui2 service · Khởi chạy: docker compose up -d
Cần lưu ý
- Volume giữ nguyên tên (name:), nên Compose dùng lại dữ liệu mà lệnh docker run đã tạo (model đã tải, database…).
Mọi thứ chạy ngay trong trình duyệt, không gửi dữ liệu của bạn đi đâu cả.
Tool này đang miễn phí. Thấy hữu ích thì mời tui 1 ly cà phê ☕