Skip to main content
Use Docker Compose to run AutoClip on Linux servers, Intel Macs, NAS devices, or any environment where you prefer a browser-accessible web interface. Prerequisites: Docker Engine and Docker Compose v2 (docker compose), plus sufficient disk space for source footage, local models, caches, and rendered exports.

Quick Start with Docker Compose

1

Clone the Repository & Create .env

Edit .env to configure your default AI provider (or leave it for the Web Settings UI after startup):
2

Prepare Bind-Mounted Directories

Create the host directories and assign ownership to the container’s autoclip user so SQLite writes and media uploads succeed cleanly on Linux:
3

Start the Stack

Default Service Endpoints

Persistent Volumes & Backups

The default docker-compose.yml persists all state using bind mounts: To back up your instance safely, wait for active jobs to finish, stop the stack, and archive the bind mounts along with .env:
Backups contain your .env file and saved provider API keys. Store archives securely and never commit them to a public repository.

Environment Variables & Host Ollama

Key environment variables supported in .env (see env.example for the full list):
  • LLM_PROVIDER: Active provider key (openai, gemini, deepseek, minimax, dashscope, ollama, etc.)
  • API_MODEL_NAME: Default model name for highlight analysis
  • OPENAI_BASE_URL: Custom base URL for OpenAI-compatible gateways or host Ollama
To connect containers to Ollama running on your host machine:
On Linux Docker Engine, add extra_hosts under both autoclip and celery-worker in docker-compose.yml so host.docker.internal resolves to the host gateway:

Reverse Proxy & Security Tips

The default stack is designed for local or trusted-LAN use. If you expose AutoClip behind Nginx, Caddy, or Traefik:
  • Never expose Redis (6379) or Flower (5555) to the public internet. Bind them to 127.0.0.1 or place them behind VPN/Zero-Trust authentication.
  • Increase upload body limits & timeouts: Video uploads and long FFmpeg exports require generous proxy limits (for example client_max_body_size 4G; and extended proxy_read_timeout in Nginx).
  • Enable WebSocket pass-through: Forward Upgrade and Connection headers so real-time progress updates stream smoothly to the browser.
  • Require authentication: Place AutoClip behind Basic Auth, Authelia, Authentik, or Cloudflare Access when hosting on a public domain.

Updating & Maintenance

Use docker compose logs --tail=100 autoclip celery-worker to inspect runtime logs at any time.