English
Create and configure AI stack
We will configure the Artificial Intelligence Docker stack and bring the stack up through Arcane. The stack consists of the following containers:
- Whisper: Speech-to-text through AI service.
- Piper: Text-to-speech through AI service.
- Ollama: LLM chat engine.
- Open WebUI: AI platform for local AI execution
- ComfyUI: Node-based generative AI workflow engine
Steps
- Run:
./scripts/create_ai_folder.shto generate the containers' directories on the SSD. - Edit the stack file:
nano ./files/ai-stack.yml. - Replace
TZ=America/New_Yorkwith your system time zone. You can use this list as a reference: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. - If you have an Nvidia GPU, skip this step. Delete or comment out the uncommented
whisperandpipersections and then uncomment the commentedwhisperandpipersections. Under theollamaandcomfyuisections, delete or comment out the entireruntimeanddeployproperties. - If you don't have an Nvidia GPU, under the
comfyuisection. change the propertyimagetosinfallas/comfyui:0.9.2-intelif you have an Intel GPU or tosinfallas/comfyui:0.9.2-amdif you have AMD GPU. - If you want, you can change the whisper container's model (
medium-int8) to a smaller or bigger model depending on your hardware. Available options are:tiny, base, small, medium, large & turbo. - Copy all contents of the file to the clipboard. Save and exit with
Ctrl + X, Y, Enter. - Add stack in Arcane from the browser.
- Access Arcane through https://arcane.myhome.duckdns.org.
- Click "Projects" on the left menu and create a new project.
- Name it "ai" and paste the content of the ai-stack.yml that you copied to the clipboard and create the stack. From now on, modifications to the stack must be made through Arcane and not in the file.
- Configure ComfyUI.
- Access ComfyUI through https://comfyui.myhome.duckdns.org.
- Click "Manager".
- Click "Model Manager".
- Search the model you would like to use for image generation and click "Install".
- Close the dialogs and in the
Load Checkpointnode, change the model to the one you just installed. - Click the file menu and select
Export (API)and save the file on your PC. If you don't see this option, clickSettingsand underComfytab, enableDev Modeand try again.
- Configure Open WebUI.
- Access Open WebUI through https://openwebui.myhome.duckdns.org.
- Use the wizard to create a user account and password. It is again recommended to use Bitwarden for the same.
- Click on your user's icon and select
Admin Panel. - Click the
Settingstab. - If you want to allow more people to create accounts, enable
Enable New Sign Ups. By default, an admin needs to approve it. If you don't want to need to approve, changeDefault User Roletouserand clickSave. - Click the
Connectionssection. - Disable
OpenAI APIand enableOllama API. - Set
http://ollama:11434as the url. - Click
Save. - Click the
Modelssection. - Click the
Manage Modelsicon in the top right corner. Here you can download and delete models to your ollama instance. For Home Assistant, it is recommended to downloadqwen2.5:7b-instruct. For regular chatting, you can also usegemma3:12b,mistral-nemo:12borqwen3:14b. - Click the
Web Searchsection. - If you want to allow your model to search the internet, enable
Web Search. You can useDDGSsearch engine withDuckDuckGoas the backend or whichever engine you prefer. ClickSave. - Click the
Imagessection. - Enable
Image Generation. - Set
Modelto the filename of the model you downloaded in ComfyUI including the extension. - Set
Image Generation EnginetoComfyUI. - Set
ComfyUI Base URLtohttp://comfyui:8188. - Under
ComfyUI WorkflowclickUploadand upload the file you saved from ComfyUI. - Under
ComfyUI Workflow Nodesyou will need to map the properties to the node's ids. For a detailed guide see: https://docs.openwebui.com/features/image-generation-and-editing/comfyui/#identifying-node-ids-and-input-keys-in-comfyui. - Click
Save.