{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "thu-maic-openmaic--self-host-openmaic-with-docker",
 "repo": "THU-MAIC/OpenMAIC",
 "repo_url": "https://github.com/THU-MAIC/OpenMAIC",
 "repo_slug": "thu-maic-openmaic",
 "title": "Self-host OpenMAIC for yourself with Docker Compose",
 "page_title": "How to self-host OpenMAIC for yourself with Docker Compose with OpenMAIC",
 "summary": "Run the two-container stack and keep courses and media in named volumes.",
 "who": "Someone who wants a personal lesson server without installing Node.js and PostgreSQL.",
 "problem": "Running the app plus a database by hand is fiddly and data can get lost on rebuilds.",
 "outcome": "A personal installation on 127.0.0.1:3000 whose data survives docker compose down and rebuilds.",
 "steps": [
  "Run `cp .env.example .env.local` and add your API keys",
  "Run `docker compose up --build`",
  "Open http://localhost:3000",
  "Before serving other machines, set a long random ACCESS_CODE and PERSISTENCE_POSTGRES_PASSWORD"
 ],
 "agent_prompt": "Deploy OpenMAIC with `docker compose up --build` after filling .env.local with my keys. Keep it on 127.0.0.1; if I ask to share it, set ACCESS_CODE and a random PERSISTENCE_POSTGRES_PASSWORD first.",
 "agents": [
  "any"
 ],
 "difficulty": "Beginner",
 "time": "20 minutes",
 "basis": "readme",
 "caveat": "`docker compose down -v` deletes the named volumes with your courses.",
 "category": "Research",
 "tags": [
  "Research"
 ],
 "lang": "typescript",
 "requirements": [
  "Node.js 22.19 or later and pnpm 10 or later, or Docker",
  "PostgreSQL 16 (pnpm db:up starts one in Docker)",
  "An API key for a model provider, for example OPENAI_API_KEY"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Without ACCESS_CODE, anyone who can reach the port owns, edits and can delete the whole library."
  }
 ],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/thu-maic-openmaic/self-host-openmaic-with-docker/",
 "md": "https://dedupedai.com/use-cases/thu-maic-openmaic/self-host-openmaic-with-docker/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/thu-maic-openmaic--self-host-openmaic-with-docker.json",
 "api_version": "v1"
}
