Run ScanDrix inside your own VPC or on-prem — Docker Compose, Kubernetes, and air-gapped setups.
ScanDrix is open-source under GNU AGPL-3.0 and can be self-hosted inside your own infrastructure: AWS, GCP, or Azure VPC, a private VM, or an air-gapped on-premise environment.
What you get
Code never leaves your network (connect internal LLM endpoints such as vLLM or Ollama, or use BYOK).
Same product surface: dashboard, Drixy rules, Dry Runs, CLI, and Cockpit metrics.
Optional signed license key (SCANDRIX_LICENSE_KEY / SCANDRIX_LICENSE_FILE) for offline-verified Enterprise features (SAML 2.0 SSO, SCIM 2.0, Audit Warehouse).
Requirements
Item
Minimum
Compute
4 vCPU / 8 GB RAM (API + worker + web)
Database
PostgreSQL 16+ with pgvector extension
Cache & Locks
Redis 7+
Queue
RabbitMQ 3.13+ with delayed-message exchange plugin
Object storage
S3-compatible bucket (AWS S3, Cloudflare R2, or MinIO)
LLM access
Internal endpoints (vLLM/Ollama) or BYOK egress allow-list
Docker Compose (standard install)
# 1. Clone the repositorygit clone https://github.com/Santosh-Prasad-Verma/ScanDrix.git && cd ScanDrix# 2. Configure environment variablescp .env.example .env$EDITOR .env # set DATABASE_URL, MIGRATION_DATABASE_URL, JWT_SECRET, KMS_MASTER_KEY, and LLM keys# 3. Start PostgreSQL, RabbitMQ, Redis, migrations, and servicesdocker compose up -d# 4. Verify healthcurl -fsS http://localhost:8080/healthz
Open the dashboard (or configure your reverse proxy hostname — see Reverse Proxy & TLS) and register your first workspace owner account at /sign-up.
.env holds real secrets — database URLs, signing keys, and provider credentials. Keep it out of version control and load secrets from your platform’s secret manager in production.
Kubernetes
Deploy the same stateless API, webhook ingress, workers, PostgreSQL (pgvector), Redis, and RabbitMQ components using Kubernetes manifests / Helm charts. See Kubernetes Deployment.
Telemetry & air-gapped notes
Mirror container images and the scandrix CLI binary to your internal registry.
Enable strict air-gapped egress enforcement with AIR_GAPPED=true and AIRGAP_ALLOWED_HOSTS pointing only at internal inference/SCM endpoints.
Self-hosted instances send at most one anonymous UTC daily heartbeat containing aggregate counters (zero source code, repo names, or user identifiers). Inspect the payload via scandrix telemetry preview or opt out completely with SCANDRIX_TELEMETRY_DISABLED=true.
Enterprise self-hosted tokens are offline Ed25519-verified via SCANDRIX_LICENSE_PUBLIC_KEY and SCANDRIX_LICENSE_FILE.
Upgrades
docker compose pull && docker compose up -d
Database migrations run automatically via the migrate compose service (scandrix-migrate) using MIGRATION_DATABASE_URL. Keep a database backup before each upgrade.
Health checks
Endpoint
Purpose
GET /healthz
Liveness — process is up
GET /readyz
Readiness — DB + queue reachable
GET /metrics
Prometheus metrics scrape
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ScanDrix","colors":{"primary":"#EF8557","light":"#F5A07A","dark":"#226192"},"logo":{"light":"https://mintcdn.com/scan-drix/BDKe3nzKChTtzCuX/logo/logo.png?fit=max\u0026auto=format\u0026n=BDKe3nzKChTtzCuX\u0026q=85\u0026s=e9e0574c10fe414930e9a5c8c77a5d38","dark":"https://mintcdn.com/scan-drix/BDKe3nzKChTtzCuX/logo/logo.png?fit=max\u0026auto=format\u0026n=BDKe3nzKChTtzCuX\u0026q=85\u0026s=e9e0574c10fe414930e9a5c8c77a5d38","href":"https://scandrix.dev"},"favicon":"https://mintcdn.com/scan-drix/BDKe3nzKChTtzCuX/favicon.ico?fit=max\u0026auto=format\u0026n=BDKe3nzKChTtzCuX\u0026q=85\u0026s=7f3800a55074f2388c034304fd80dd6b","navbar":{"links":[{"href":"mailto:support@scandrix.dev","label":"Support"},{"href":"https://github.com/Santosh-Prasad-Verma/ScanDrix","label":"GitHub"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.scandrix.dev"}},"footer":{"socials":{"github":"https://github.com/Santosh-Prasad-Verma/ScanDrix","website":"https://scandrix.dev"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"scan-drix","hasAudioNarration":false,"actualSubdomain":"scan-drix","customDomains":["docs.scandrix.dev"],"gitSource":{"type":"github","owner":"santosh-prasad-verma","repo":"scandrix","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":"","_id":"6b1251087c30f9dc1255cb0b"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b125e8b8753f39e75d3759c","clientVersion":"0.0.4448","searchFilterCounts":[]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"how-to-deploy/self-hosted","slug":"/how-to-deploy/self-hosted","pageMetadata":{"title":"Self-Hosted Deployment","description":"Run ScanDrix inside your own VPC or on-prem — Docker Compose, Kubernetes, and air-gapped setups.","href":"/how-to-deploy/self-hosted"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Run ScanDrix inside your own VPC or on-prem — Docker Compose, Kubernetes, and air-gapped setups.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`ScanDrix is open-source under `,_jsx(_components.strong,{children:`GNU AGPL-3.0`}),` and can be self-hosted inside your own infrastructure: AWS, GCP, or Azure VPC, a private VM, or an air-gapped on-premise environment.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-you-get`,children:`What you get`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Code never leaves your network (connect internal LLM endpoints such as `,_jsx(_components.strong,{children:`vLLM`}),` or `,_jsx(_components.strong,{children:`Ollama`}),`, or use BYOK).`]}),`\n`,_jsx(_components.li,{children:`Same product surface: dashboard, Drixy rules, Dry Runs, CLI, and Cockpit metrics.`}),`\n`,_jsxs(_components.li,{children:[`Optional signed license key (`,_jsx(_components.code,{children:`SCANDRIX_LICENSE_KEY`}),` / `,_jsx(_components.code,{children:`SCANDRIX_LICENSE_FILE`}),`) for offline-verified Enterprise features (SAML 2.0 SSO, SCIM 2.0, Audit Warehouse).`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`requirements`,children:`Requirements`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Item`}),_jsx(_components.th,{children:`Minimum`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Compute`}),_jsx(_components.td,{children:`4 vCPU / 8 GB RAM (API + worker + web)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Database`}),_jsxs(_components.td,{children:[`PostgreSQL 16+ with `,_jsx(_components.code,{children:`pgvector`}),` extension`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Cache \u0026 Locks`}),_jsx(_components.td,{children:`Redis 7+`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Queue`}),_jsx(_components.td,{children:`RabbitMQ 3.13+ with delayed-message exchange plugin`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Object storage`}),_jsx(_components.td,{children:`S3-compatible bucket (AWS S3, Cloudflare R2, or MinIO)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`LLM access`}),_jsx(_components.td,{children:`Internal endpoints (vLLM/Ollama) or BYOK egress allow-list`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`docker-compose-standard-install`,children:`Docker Compose (standard install)`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 1. Clone the repository`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` clone`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://github.com/Santosh-Prasad-Verma/ScanDrix.git`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026 `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ScanDrix`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 2. Configure environment variables`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .env.example`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .env`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$EDITOR`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .env `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# set DATABASE_URL, MIGRATION_DATABASE_URL, JWT_SECRET, KMS_MASTER_KEY, and LLM keys`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 3. Start PostgreSQL, RabbitMQ, Redis, migrations, and services`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` compose`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` up`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 4. Verify health`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -fsS`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` http://localhost:8080/healthz`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Open the dashboard (or configure your reverse proxy hostname — see `,_jsx(_components.a,{href:`/how-to-deploy/reverse-proxy`,children:`Reverse Proxy \u0026 TLS`}),`) and register your first workspace owner account at `,_jsx(_components.code,{children:`/sign-up`}),`.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`.env`}),` holds real secrets — database URLs, signing keys, and provider credentials. Keep it out of version control and load secrets from your platform’s secret manager in production.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`kubernetes`,children:`Kubernetes`}),`\n`,_jsxs(_components.p,{children:[`Deploy the same stateless API, webhook ingress, workers, PostgreSQL (`,_jsx(_components.code,{children:`pgvector`}),`), Redis, and RabbitMQ components using Kubernetes manifests / Helm charts. See `,_jsx(_components.a,{href:`/how-to-deploy/kubernetes`,children:`Kubernetes Deployment`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`telemetry-\u0026-air-gapped-notes`,children:`Telemetry \u0026 air-gapped notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Mirror container images and the `,_jsx(_components.code,{children:`scandrix`}),` CLI binary to your internal registry.`]}),`\n`,_jsxs(_components.li,{children:[`Enable strict air-gapped egress enforcement with `,_jsx(_components.code,{children:`AIR_GAPPED=true`}),` and `,_jsx(_components.code,{children:`AIRGAP_ALLOWED_HOSTS`}),` pointing only at internal inference/SCM endpoints.`]}),`\n`,_jsxs(_components.li,{children:[`Self-hosted instances send at most one anonymous UTC daily heartbeat containing aggregate counters (zero source code, repo names, or user identifiers). Inspect the payload via `,_jsx(_components.code,{children:`scandrix telemetry preview`}),` or opt out completely with `,_jsx(_components.code,{children:`SCANDRIX_TELEMETRY_DISABLED=true`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Enterprise self-hosted tokens are offline Ed25519-verified via `,_jsx(_components.code,{children:`SCANDRIX_LICENSE_PUBLIC_KEY`}),` and `,_jsx(_components.code,{children:`SCANDRIX_LICENSE_FILE`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`upgrades`,children:`Upgrades`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` compose`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pull`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026 `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` compose`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` up`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Database migrations run automatically via the `,_jsx(_components.code,{children:`migrate`}),` compose service (`,_jsx(_components.code,{children:`scandrix-migrate`}),`) using `,_jsx(_components.code,{children:`MIGRATION_DATABASE_URL`}),`. Keep a database backup before each upgrade.`]}),`\n`,_jsx(Heading,{level:`2`,id:`health-checks`,children:`Health checks`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Endpoint`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /healthz`})}),_jsx(_components.td,{children:`Liveness — process is up`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /readyz`})}),_jsx(_components.td,{children:`Readiness — DB + queue reachable`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /metrics`})}),_jsx(_components.td,{children:`Prometheus metrics scrape`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Self-Hosted Deployment","description":"Run ScanDrix inside your own VPC or on-prem — Docker Compose, Kubernetes, and air-gapped setups.","href":"/how-to-deploy/self-hosted"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What you get","slug":"what-you-get","depth":2,"children":[]},{"title":"Requirements","slug":"requirements","depth":2,"children":[]},{"title":"Docker Compose (standard install)","slug":"docker-compose-standard-install","depth":2,"children":[]},{"title":"Kubernetes","slug":"kubernetes","depth":2,"children":[]},{"title":"Telemetry \u0026 air-gapped notes","slug":"telemetry-\u0026-air-gapped-notes","depth":2,"children":[]},{"title":"Upgrades","slug":"upgrades","depth":2,"children":[]},{"title":"Health checks","slug":"health-checks","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"scan-drix","siteName":"ScanDrix","title":"Self-Hosted Deployment - ScanDrix","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-04T06:32:49.252Z","originalFileLocation":"how-to-deploy/self-hosted.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Run ScanDrix inside your own VPC or on-prem — Docker Compose, Kubernetes, and air-gapped setups.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ScanDrix\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/scan-drix/fUG8-iwhWO9FV5Hm/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/scan-drix/fUG8-iwhWO9FV5Hm/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/scan-drix/fUG8-iwhWO9FV5Hm/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/scan-drix/fUG8-iwhWO9FV5Hm/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/scan-drix/fUG8-iwhWO9FV5Hm/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/scan-drix/fUG8-iwhWO9FV5Hm/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/scan-drix/fUG8-iwhWO9FV5Hm/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/scan-drix/fUG8-iwhWO9FV5Hm/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/scan-drix/fUG8-iwhWO9FV5Hm/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Self-Hosted Deployment - ScanDrix\">\u003cmeta data-mint-head property=\"og:description\" content=\"Run ScanDrix inside your own VPC or on-prem — Docker Compose, Kubernetes, and air-gapped setups.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ScanDrix\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.scandrix.dev/how-to-deploy/self-hosted\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://scan-drix.mintlify.site/_mintlify/api/og/v2?division=Deployment+Targets\u0026amp;title=Self-Hosted+Deployment\u0026amp;description=Run+ScanDrix+inside+your+own+VPC+or+on-prem+%E2%80%94+Docker+Compose%2C+Kubernetes%2C+and+air-gapped+setups.\u0026amp;theme=e22f71881eafb38c6197992e\u0026amp;signature=ef4a865b66678bfb98542c0e72b450d40548e89491769a24a130cb342c3dbbef\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Self-Hosted Deployment - ScanDrix\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Run ScanDrix inside your own VPC or on-prem — Docker Compose, Kubernetes, and air-gapped setups.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://scan-drix.mintlify.site/_mintlify/api/og/v2?division=Deployment+Targets\u0026amp;title=Self-Hosted+Deployment\u0026amp;description=Run+ScanDrix+inside+your+own+VPC+or+on-prem+%E2%80%94+Docker+Compose%2C+Kubernetes%2C+and+air-gapped+setups.\u0026amp;theme=e22f71881eafb38c6197992e\u0026amp;signature=ef4a865b66678bfb98542c0e72b450d40548e89491769a24a130cb342c3dbbef\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/scan-drix/fUG8-iwhWO9FV5Hm/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ScanDrix\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#EF8557\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.scandrix.dev/how-to-deploy/self-hosted\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/how-to-deploy/self-hosted.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.scandrix.dev/#organization\",\"name\":\"ScanDrix\",\"url\":\"https://docs.scandrix.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/scan-drix/BDKe3nzKChTtzCuX/logo/logo.png?fit=max\u0026auto=format\u0026n=BDKe3nzKChTtzCuX\u0026q=85\u0026s=e9e0574c10fe414930e9a5c8c77a5d38\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.scandrix.dev#website\",\"name\":\"ScanDrix\",\"url\":\"https://docs.scandrix.dev\",\"publisher\":{\"@id\":\"https://docs.scandrix.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.scandrix.dev/how-to-deploy/self-hosted#webpage\",\"url\":\"https://docs.scandrix.dev/how-to-deploy/self-hosted\",\"name\":\"Self-Hosted Deployment\",\"description\":\"Run ScanDrix inside your own VPC or on-prem — Docker Compose, Kubernetes, and air-gapped setups.\",\"dateModified\":\"2026-12-04T06:32:49.252Z\",\"isPartOf\":{\"@id\":\"https://docs.scandrix.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.scandrix.dev/how-to-deploy/self-hosted#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.scandrix.dev/how-to-deploy/self-hosted#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"ScanDrix\",\"item\":\"https://docs.scandrix.dev\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Self-Hosted Deployment\",\"item\":\"https://docs.scandrix.dev/how-to-deploy/self-hosted\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.scandrix.dev/how-to-deploy/self-hosted#article\",\"headline\":\"Self-Hosted Deployment\",\"name\":\"Self-Hosted Deployment\",\"description\":\"Run ScanDrix inside your own VPC or on-prem — Docker Compose, Kubernetes, and air-gapped setups.\",\"url\":\"https://docs.scandrix.dev/how-to-deploy/self-hosted\",\"mainEntityOfPage\":{\"@id\":\"https://docs.scandrix.dev/how-to-deploy/self-hosted#webpage\"},\"dateModified\":\"2026-12-04T06:32:49.252Z\",\"publisher\":{\"@id\":\"https://docs.scandrix.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.scandrix.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ScanDrix\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ScanDrix\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/how-to-deploy/self-hosted.md","siteName":"ScanDrix","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":""}]},{"tab":"Self-Hosting","icon":"server","groups":[{"group":"Concepts","pages":[{"title":"ScanDrix Architecture","description":"How webhook ingestion, queueing, workers, and the review engine fit together.","href":"/how-to-deploy/architecture"}]},{"group":"Deployment Targets","pages":[{"title":"Self-Hosted Deployment","href":"/how-to-deploy/self-hosted"},{"title":"Kubernetes Deployment (Helm)","description":"Production-grade Kubernetes deployment guide with Helm chart, Horizontal Pod Autoscaling (HPA), and secrets management.","href":"/how-to-deploy/kubernetes"},{"title":"Reverse Proxy \u0026 TLS","href":"/how-to-deploy/reverse-proxy"},{"title":"Database Migrations \u0026 Pooling","href":"/how-to-deploy/database-migrations"}]},{"group":"Git Providers","pages":[{"title":"Webhook Setup","href":"/how-to-deploy/webhooks"}]}]},{"tab":"Knowledge Base","icon":"circle-question","pages":[{"title":"Knowledge Base","href":"/knowledge-base/introduction"}]},{"tab":"Cookbook","icon":"utensils","pages":[{"title":"Cookbook","href":"/cookbook/monorepos"}]},{"tab":"API Reference","icon":"terminal","pages":[{"title":"API Reference","href":"/api-reference/system-probes/health-diagnostics-probe"}]},{"tab":"Changelog","icon":"clock-rotate-left","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Self-Hosted Deployment - ScanDrix","deploymentId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","buildId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","dynamics":[],"chunks":[]}