mirror of
https://github.com/okxlin/appstore.git
synced 2025-07-13 21:02:18 +08:00
30 lines
674 B
YAML
30 lines
674 B
YAML
version: '3.3'
|
|
services:
|
|
open-webui:
|
|
image: ghcr.io/open-webui/open-webui:cuda
|
|
container_name: ${CONTAINER_NAME}
|
|
restart: always
|
|
networks:
|
|
- 1panel-network
|
|
ports:
|
|
- "${PANEL_APP_PORT_HTTP}:8080"
|
|
environment:
|
|
- NVIDIA_VISIBLE_DEVICES=all
|
|
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL}
|
|
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- capabilities: [gpu]
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
volumes:
|
|
- "${DATA_PATH}:/app/backend/data"
|
|
labels:
|
|
createdBy: "Apps"
|
|
|
|
networks:
|
|
1panel-network:
|
|
external: true
|