← All tools

TOOLS · DEV UTILITIES

Docker Run → Compose

FreeRuns in your browser

READMEs 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.

01 · docker run command

Accepts multi-line commands (\ in bash, ` in PowerShell), several commands at once and the common flags: -p, -v, -e, --name, --restart, --gpus, --network, --health-cmd…

Try an example:
02 · Options

Untick to let Compose name containers, handy when running several copies.

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-webui

2 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 ☕