diff --git a/compose.yml b/compose.yml index 305b2c8..67fdcc5 100755 --- a/compose.yml +++ b/compose.yml @@ -232,6 +232,32 @@ services: - "traefik.http.routers.metube.entrypoints=https" - "traefik.http.routers.metube.tls=true" - "traefik.http.services.metube.loadbalancer.server.port=8081" + + ollama: + image: ollama/ollama:latest + container_name: ollama + ports: + - "11434:11434" + volumes: + - ${DATA}/ollama/ollama:/root/.ollama + restart: unless-stopped + + open-webui: + image: ghcr.io/open-webui/open-webui:main + container_name: open-webui + environment: + - OLLAMA_BASE_URL=http://ollama:11434 + volumes: + - ${DATA}/ollama/open-webui:/app/backend/data + depends_on: + - ollama + restart: unless-stopped + labels: # traefik + - "traefik.enable=true" + - "traefik.http.routers.open-webui.rule=Host(`ai.${DOMAIN}`)" + - "traefik.http.routers.open-webui.entrypoints=https" + - "traefik.http.routers.open-webui.tls=true" + - "traefik.http.services.open-webui.loadbalancer.server.port=8080" picard: container_name: picard