---
title: "Deploy DefectDojo"
description: "Open-source vulnerability management: import 200+ scanners, dedupe, track"
category: "Other"
url: https://railway.com/deploy/defectdojo
---

# Deploy DefectDojo

Open-source vulnerability management: import 200+ scanners, dedupe, track

**[Deploy DefectDojo on Railway](https://railway.com/template/defectdojo)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/defectdojo/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** Other

## Template content

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### DefectDojo https://raw.githubusercontent.com/DefectDojo/django-DefectDojo/3.5.103/docs/assets/favicon.png

- **Source:** https://github.com/aalfath/defectdojo-railway-template
- **Health check:** /login
- **Public domain:** Yes

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

## Documentation

# Deploy and Host DefectDojo on Railway

DefectDojo is an open-source DevSecOps and vulnerability management platform and an OWASP project. It imports results from more than 200 security tools (SAST, DAST, SCA, container and cloud scanners), deduplicates the findings, and tracks them across products, engagements and tests, with metrics, SLAs, risk acceptance and Jira integration.

## About Hosting DefectDojo

DefectDojo is a Django application. A full deployment runs a database initializer, the uWSGI web server, a Celery worker for background jobs (deduplication, notifications, Jira sync) and Celery beat for scheduled tasks, backed by PostgreSQL and a Redis-compatible broker. This template runs all four DefectDojo processes in one service, built from a public GitHub repo that pins the official DefectDojo 3.5.103 image by digest. Railway provides Postgres, Redis, a volume for uploaded scan files and HTTPS. The first boot creates the schema and the admin user; later boots apply migrations automatically. The admin password, Django secret key and credential encryption key are generated for you.

## Common Use Cases

* Centralize findings from scanners such as Semgrep, Trivy, ZAP, Burp, Snyk, Dependency-Check and SonarQube in one place
* Deduplicate and triage vulnerabilities across products and CI/CD pipelines through the REST API
* Track remediation with SLAs, risk acceptance, reports and Jira integration for an AppSec team

## Dependencies for DefectDojo Hosting

* PostgreSQL (Railway Postgres)
* Redis (Railway Redis) as the Celery broker and cache

### Deployment Dependencies

* DefectDojo source and docs: https://github.com/DefectDojo/django-DefectDojo
* Release 3.5.103: https://github.com/DefectDojo/django-DefectDojo/releases/tag/3.5.103
* Template repo: https://github.com/aalfath/defectdojo-railway-template

### Implementation Details

Sign in at your Railway domain as `admin` with the `DD_ADMIN_PASSWORD` value from the DefectDojo service's Variables tab. That password is only used on first boot; change it in the UI afterwards. Don't change `DD_CREDENTIAL_AES_256_KEY` after the first boot, because stored tool credentials are encrypted with it.

Optional settings, added on the DefectDojo service: `DD_SITE_URL=https://YOUR-DOMAIN` for a custom domain (allowed hosts and CSRF origins follow it), `DD_EMAIL_URL` for e-mail notifications, and `DD_UWSGI_NUM_OF_PROCESSES` or `DD_CELERY_WORKER_CONCURRENCY` for more capacity. New DefectDojo releases arrive as template updates from the repo.

## Why Deploy DefectDojo on Railway?


Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying DefectDojo on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.



## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/defectdojo
