[{"data":1,"prerenderedAt":61},["ShallowReactive",2],{"i-ph:circle-half-tilt":3,"i-ph:github-logo":8,"i-mdi:drupal":10,"okb-markdown:installation.md":13},{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":7},0,256,false,"\u003Cpath fill=\"currentColor\" d=\"M201.54 54.46A104 104 0 0 0 54.46 201.54A104 104 0 0 0 201.54 54.46M184 195.87a87 87 0 0 1-16 10.5V99.31l16-16Zm-80-32.56l16-16v68.28a88.4 88.4 0 0 1-16-3Zm-16 43.06a87 87 0 0 1-16.3-10.76l16.3-16.3Zm48-75.06l16-16v97.32a88.4 88.4 0 0 1-16 3ZM40 128a88 88 0 0 1 144.3-67.61L60.38 184.31A87.34 87.34 0 0 1 40 128m160 50.59V77.41a88 88 0 0 1 0 101.18\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":9},"\u003Cpath fill=\"currentColor\" d=\"M208.31 75.68A59.78 59.78 0 0 0 202.93 28a8 8 0 0 0-6.93-4a59.75 59.75 0 0 0-48 24h-24a59.75 59.75 0 0 0-48-24a8 8 0 0 0-6.93 4a59.78 59.78 0 0 0-5.38 47.68A58.14 58.14 0 0 0 56 104v8a56.06 56.06 0 0 0 48.44 55.47A39.8 39.8 0 0 0 96 192v8H72a24 24 0 0 1-24-24a40 40 0 0 0-40-40a8 8 0 0 0 0 16a24 24 0 0 1 24 24a40 40 0 0 0 40 40h24v16a8 8 0 0 0 16 0v-40a24 24 0 0 1 48 0v40a8 8 0 0 0 16 0v-40a39.8 39.8 0 0 0-8.44-24.53A56.06 56.06 0 0 0 216 112v-8a58.14 58.14 0 0 0-7.69-28.32M200 112a40 40 0 0 1-40 40h-48a40 40 0 0 1-40-40v-8a41.74 41.74 0 0 1 6.9-22.48a8 8 0 0 0 1.1-7.69a43.8 43.8 0 0 1 .79-33.58a43.88 43.88 0 0 1 32.32 20.06a8 8 0 0 0 6.71 3.69h32.35a8 8 0 0 0 6.74-3.69a43.87 43.87 0 0 1 32.32-20.06a43.8 43.8 0 0 1 .77 33.58a8.09 8.09 0 0 0 1 7.65a41.7 41.7 0 0 1 7 22.52Z\"\u002F>",{"left":4,"top":4,"width":11,"height":11,"rotate":4,"vFlip":6,"hFlip":6,"body":12},24,"\u003Cpath fill=\"currentColor\" d=\"M20.47 14.65c0 .64-.22 1.71-.64 2.45c-.43.75-.75.96-1.39.96c-.74-.11-2.13-2.24-3.08-2.34c-1.18 0-3.63 2.45-5.65 2.45c-1.17 0-1.6-.22-1.92-.43c-.64-.43-.85-1.07-.85-1.92c0-1.6 1.49-2.98 3.3-2.98c2.35 0 3.94 2.34 5.12 2.24c.95 0 2.87-1.92 3.83-1.92c.96-.21 1.28.84 1.28 1.49m-3.84-9.37c-1.06-.64-2.02-.96-3.09-1.6c-.63-.43-1.49-1.38-2.23-2.24c-.31 1.39-.53 1.92-1.07 2.35c-1.06.74-1.6 1.06-2.55 1.49C6.94 5.7 3 8.05 3 13.16S7.37 22 12.05 22c4.8 0 8.95-3.5 8.95-8.73c.21-5.22-3.73-7.57-4.37-7.99\"\u002F>",{"pages":14,"html":60},[15,20,25,30,35,40,45,50,55],{"source":16,"slug":17,"title":18,"order":19},"use-cases.md","use-cases","Use cases",1,{"source":21,"slug":22,"title":23,"order":24},"features.md","features","Features",2,{"source":26,"slug":27,"title":28,"order":29},"architecture.md","architecture","Architecture",3,{"source":31,"slug":32,"title":33,"order":34},"quickstart.md","quickstart","Quickstart",4,{"source":36,"slug":37,"title":38,"order":39},"installation.md","installation","Installation",5,{"source":41,"slug":42,"title":43,"order":44},"configuration.md","configuration","Configuration",6,{"source":46,"slug":47,"title":48,"order":49},"updates.md","updates","Updates",7,{"source":51,"slug":52,"title":53,"order":54},"user-guide.md","user-guide","User guide",8,{"source":56,"slug":57,"title":58,"order":59},"community.md","community","Code & community",9,"\u003Cp>This page is the install for production: your own server, your own hostnames and secrets. To look at OpenKnowledgebase first, use the \u003Ca href=\"\u002Fdocs\u002Fquickstart\">Quickstart\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Ch2 id=\"prerequisites\">Prerequisites\u003C\u002Fh2>\n\n\u003Cp>A production install needs a host with:\u003C\u002Fp>\n\n\u003Cul>\n  \u003Cli>\u003Cstrong>Docker with the compose plugin, 2.24 or newer.\u003C\u002Fstrong> Check it with \u003Ccode>docker compose version\u003C\u002Fcode>.\u003C\u002Fli>\n\n  \u003Cli>\u003Cstrong>Two hostnames under one parent domain\u003C\u002Fstrong>, both pointing at the host: one for the knowledge base (\u003Ccode>kb.example.com\u003C\u002Fcode>), one for Drupal (\u003Ccode>admin.kb.example.com\u003C\u002Fcode>).\u003C\u002Fli>\n\n  \u003Cli>\u003Cstrong>4 GB of RAM\u003C\u002Fstrong> free for the stack.\u003C\u002Fli>\n\n  \u003Cli>\n    \u003Cp>\u003Cstrong>\u003Ccode>vm.max_map_count=262144\u003C\u002Fcode>\u003C\u002Fstrong> on the host, for OpenSearch:\u003C\u002Fp>\n\n    \u003Cpre data-language=\"sh\">\u003Ccode class=\"language-sh\">sysctl -w vm.max_map_count=262144\u003C\u002Fcode>\u003C\u002Fpre>\n\n    \u003Cp>Add the same line to \u003Ccode>\u002Fetc\u002Fsysctl.conf\u003C\u002Fcode> to keep it across reboots.\u003C\u002Fp>\n  \u003C\u002Fli>\n\n  \u003Cli>\u003Cstrong>A reverse proxy that terminates TLS\u003C\u002Fstrong> and forwards each hostname to its service. The requirements and examples for Caddy, Traefik, nginx and Cloudflare Tunnel are in the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fopenkb-app\u002Fopenkb\u002Fblob\u002F1.x\u002Fdocs\u002Fself-hosting.md#the-reverse-proxy\">reverse proxy section of \u003Ccode>docs\u002Fself-hosting.md\u003C\u002Fcode>\u003C\u002Fa>. A host without one can use the one the repository provides, see \u003Ca href=\"#optional-set-up-a-reverse-proxy\">Optional: set up a reverse proxy\u003C\u002Fa>.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cp>The \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fopenkb-app\u002Fopenkb\u002Fblob\u002F1.x\u002FREADME.md#requirements\">README\u003C\u002Fa> lists CPU, disk and browser requirements.\u003C\u002Fp>\n\n\u003Ch2 id=\"install\">Install\u003C\u002Fh2>\n\n\u003Cp>A production install is the project's own \u003Ccode>docker-compose.yml\u003C\u002Fcode> with a \u003Ccode>.env\u003C\u002Fcode> of your own:\u003C\u002Fp>\n\n\u003Cpre data-language=\"sh\">\u003Ccode class=\"language-sh\">git clone https:\u002F\u002Fgithub.com\u002Fopenkb-app\u002Fopenkb.git && cd openkb\ncp .env.example .env   # fill in the two URLs, the cookie domain and the secrets\ndocker compose pull && docker compose up -d\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>.env\u003C\u002Fcode> holds the two URLs, the cookie domain and the secrets; \u003Ca href=\"\u002Fdocs\u002Fconfiguration\">Configuration\u003C\u002Fa> lists every setting. The \u003Ccode>drupal\u003C\u002Fcode> container installs the site on its first boot. That takes a few minutes, with a \"setting up\" page until it is through; \u003Ccode>docker compose logs -f drupal\u003C\u002Fcode> shows the install and prints the \u003Ccode>admin\u003C\u002Fcode> password, unless \u003Ccode>.env\u003C\u002Fcode> sets one. \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fopenkb-app\u002Fopenkb\u002Fblob\u002F1.x\u002Fdocs\u002Fself-hosting.md\">\u003Ccode>docs\u002Fself-hosting.md\u003C\u002Fcode>\u003C\u002Fa> covers what a production host needs: the two hostnames, the reverse proxy, the secrets, outgoing mail and the backup set.\u003C\u002Fp>\n\n\u003Ch2 id=\"optional-set-up-a-reverse-proxy\">Optional: set up a reverse proxy\u003C\u002Fh2>\n\n\u003Cp>If the host has no reverse proxy yet, the repository provides one: \u003Ccode>docker-compose.tls.yml\u003C\u002Fcode> puts Caddy in front of the stack. It terminates TLS for both hostnames and gets their certificates by itself. Both hostnames have to resolve to the host, and ports 80 and 443 have to be reachable. Name the two hostnames in \u003Ccode>.env\u003C\u002Fcode>:\u003C\u002Fp>\n\n\u003Cpre data-language=\"sh\">\u003Ccode class=\"language-sh\">FRONTEND_HOST=kb.example.com\nDRUPAL_HOST=admin.kb.example.com\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Cp>Then start the stack with both compose files:\u003C\u002Fp>\n\n\u003Cpre data-language=\"sh\">\u003Ccode class=\"language-sh\">docker compose -f docker-compose.yml -f docker-compose.tls.yml up -d\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Cp>Every later \u003Ccode>docker compose\u003C\u002Fcode> command takes the same two \u003Ccode>-f\u003C\u002Fcode> options, an update included. To save typing them, set \u003Ccode>COMPOSE_FILE=docker-compose.yml:docker-compose.tls.yml\u003C\u002Fcode> in \u003Ccode>.env\u003C\u002Fcode> once.\u003C\u002Fp>\n\n\u003Ch2 id=\"after-the-first-boot\">After the first boot\u003C\u002Fh2>\n\n\u003Cp>The user guide ships with the app and is ready after the first boot; its \"Initial setup\" page takes it from there. See \u003Ca href=\"\u002Fdocs\u002Fuser-guide\">User guide\u003C\u002Fa>.\u003C\u002Fp>\n",1796124730354]