services: ollama: image: ollama/ollama:latest container_name: d0a1-ollama restart: unless-stopped ports: - "${OLLAMA_PORT:-11434}:11434" volumes: - ollama_data:/root/.ollama environment: - OLLAMA_KEEP_ALIVE=${OLLAMA_KEEP_ALIVE:-5m} # GPU passthrough: descomenta la sección deploy si tienes GPU NVIDIA # deploy: # resources: # reservations: # devices: # - driver: nvidia # count: all # capabilities: [gpu] open-webui: image: ghcr.io/open-webui/open-webui:main container_name: d0a1-open-webui restart: unless-stopped ports: - "${WEBUI_PORT:-3000}:8080" volumes: - open_webui_data:/app/backend/data environment: - OLLAMA_BASE_URL=http://ollama:11434 - WEBUI_AUTH=${WEBUI_AUTH:-true} - WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY:-} - DEFAULT_MODELS=${DEFAULT_MODEL:-llama3.2:3b} depends_on: - ollama volumes: ollama_data: open_webui_data: