TOOLS · DEV UTILITIES
Docker Run → Compose
FreeRuns in your browserREADMEs love a long docker run command. Paste it here to get a tidy compose.yaml that is easy to edit and start again with one command.
compose.yaml
Save it in your project folder, then run the command below.
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(s) · Start it: docker compose up -d
Worth checking
- Named volumes keep their names (name:), so Compose reuses the data docker run already created (downloaded models, databases…).
Everything runs in your browser; nothing you enter is sent anywhere.
This tool is free for now. If it helped, buy me a coffee ☕