Credentials. Model provider keys are stored in the Dify instance; restrict access before sharing it.
Who it is forA team that wants an LLM app platform on its own server for data control.
The problemBuilding chat, RAG and workflow plumbing from scratch takes weeks.
The outcomeA running Dify dashboard at localhost/install where you create the admin account.
What you need first
- 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
Steps
- Clone the repo, then
cd difyandcd 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
Prompt for your agent
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.
Caveat.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for langgenius/dify and "Self-host Dify with Docker Compose"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer