{
 "schema_version": 1,
 "generated": "2026-10-25",
 "id": "langgenius-dify--self-host-dify-with-docker-compose",
 "repo": "langgenius/dify",
 "repo_url": "https://github.com/langgenius/dify",
 "repo_slug": "langgenius-dify",
 "title": "Self-host Dify with Docker Compose",
 "page_title": "How to self-host Dify with Docker Compose with Dify",
 "summary": "Copy the env file, start the stack, and finish setup in the browser.",
 "who": "A team that wants an LLM app platform on its own server for data control.",
 "problem": "Building chat, RAG and workflow plumbing from scratch takes weeks.",
 "outcome": "A running Dify dashboard at localhost/install where you create the admin account.",
 "steps": [
  "Clone the repo, then `cd dify` and `cd docker`",
  "Run `cp .env.example .env`",
  "Start it with `docker compose up -d`",
  "Open http://localhost/install and complete initialization",
  "Add your model provider keys in settings"
 ],
 "agent_prompt": "Self-host langgenius/dify with Docker Compose on this server, confirm all containers are healthy, and tell me which values in .env I should change before exposing it to my team.",
 "agents": [
  "any"
 ],
 "difficulty": "Beginner",
 "time": "20 minutes",
 "basis": "readme",
 "caveat": "",
 "category": "Work and operations",
 "tags": [
  "Work and operations"
 ],
 "lang": "python",
 "requirements": [
  "Docker and Docker Compose v2.24.0 or later for self-hosting",
  "A machine with at least 2 CPU cores and 4 GiB RAM",
  "API keys for the model providers you use"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Model provider keys are stored in the Dify instance; restrict access before sharing it."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/langgenius-dify/self-host-dify-with-docker-compose/",
 "md": "https://dedupedai.com/use-cases/langgenius-dify/self-host-dify-with-docker-compose/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/langgenius-dify--self-host-dify-with-docker-compose.json",
 "api_version": "v1"
}
