DefectDojo Cookbook: Set Admin Password Before Installation

One important thing before the first DefectDojo run is to configure future admin password.
So, assume we cloned DefectDojo repository and switched to the dev
branch:
$ git clone https://github.com/DefectDojo/django-DefectDojo.git $ git checkout dev $ cd django-DefectDojo/
Open docker-compose.yml
for editing:
$ nano docker-compose.yml
Find the line DD_ADMIN_USER: ${DD_ADMIN_USER:-admin}
:
... initializer: image: defectdojo/defectdojo-django:latest depends_on: - mysql entrypoint: ['/wait-for-it.sh', 'mysql:3306', '--', '/entrypoint-initializer.sh'] environment: DD_DATABASE_URL: ${DD_DATABASE_URL:-mysql://defectdojo:defectdojo@mysql:3306/defectdojo} DD_ADMIN_USER: ${DD_ADMIN_USER:-admin} ...
Add this line DD_ADMIN_PASSWORD: admin
after it:
... initializer: image: defectdojo/defectdojo-django:latest depends_on: - mysql entrypoint: ['/wait-for-it.sh', 'mysql:3306', '--', '/entrypoint-initializer.sh'] environment: DD_DATABASE_URL: ${DD_DATABASE_URL:-mysql://defectdojo:defectdojo@mysql:3306/defectdojo} DD_ADMIN_USER: ${DD_ADMIN_USER:-admin} DD_ADMIN_PASSWORD: admin ...
Close file docker-compose.yml
, build and run your first DefectDojo instance according installation instructions:
$ sudo docker-compose build $ sudo docker-compose up
When run will complete navigate to https://YOUR_DEFECTDOJO_INSTANCE:8000/
and try to login with admin
login and with password that you set.
Good luck!