Video tutorial coming soon.
Deploy Dify on Ubuntu with Docker — an open-source LLM application development platform with visual workflow builder, RAG knowledge bases, agent orchestration, and one-click API publishing. Build AI-powered apps without writing backend code.
Grab the automated bash script from GitHub to follow along with the video.
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/ai/dify/dify-ubuntu.sh
chmod +x dify-ubuntu.sh
sudo bash dify-ubuntu.sh
The script installs Docker and deploys the full Dify stack — API server, worker, web frontend, PostgreSQL, Redis, and Weaviate vector database.
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/ai/dify/dify-ubuntu.sh
chmod +x dify-ubuntu.sh
sudo bash dify-ubuntu.sh
Open your browser and navigate to Dify. Complete the initial setup to create your admin account and your first workspace:
http://<your-server-ip>
Go to Settings → Model Provider. Add Ollama (local) by entering your Ollama API base URL, or add an OpenAI/Anthropic API key for cloud models.
Click "Create App" and choose from Chatbot, Text Generator, Agent, or Workflow. Use the visual builder to design prompts, add knowledge bases, and publish a ready-to-use API or embedded chat widget.
| Port | Purpose |
|---|---|
| 80 | Dify Web UI |
| 5001 | Dify API Server |