Dify is an open-source LLM app development platform, visual workflow design, RAG pipelines, agents, model management, and observability, with support for hundreds of proprietary and open-source models. This guide deploys Dify's bundled Docker Compose stack (Nginx, PostgreSQL, Redis, Weaviate), provisions Let's Encrypt TLS via Certbot, connects a model provider, and builds a chatflow-based support chatbot.

Prerequisites: a Linux server (2 vCPU / 4GB RAM minimum), Docker + Docker Compose, a domain A record (e.g. dify.example.com), an API key from a model provider (OpenAI, Anthropic, Cohere, etc.).

Set Up the Project

$ curl -sL https://github.com/langgenius/dify/archive/refs/tags/1.14.1.tar.gz | tar -xz

$ mv dify-1.14.1 ~/dify