# DefectDojo

## Persiapan

Pastikan docker compose version  v2.x

```
docker-compose -v
```

{% embed url="<https://docs.docker.com/engine/install/ubuntu/>" %}

## Instalasi

Clone repository

```
git clone https://github.com/DefectDojo/django-DefectDojo
```

Masuk ke directory `django-DefectDojo`

```
cd django-DefectDojo
```

Build images

```
./dc-build.sh
```

Run images

```
./dc-up.sh
```

Dapatkan credentials admin

```
docker compose logs initializer | grep "Admin password:"
```

Akses menggunakan port 8080

[http://localhost:8080](http://localhost:8080/).

## Konfigurasi HTTPS

Hapus konfigurasi override http

```
rm -f docker-compose.override.yml
```

Buat symbolic link untuk https

```
ln -s docker-compose.override.https.yml docker-compose.override.yml
```

Jalankan ulang docker

```
./dc-up.sh
```

Akses dari port 8443

[http://localhost:](http://localhost:8080/)[8433.](http://localhost:8080/)

## Membersihkan FIle Docker

Menghapus semua container DefectDojo

```
./dc-down.sh
```

Menghapus semua container DefectDojo, Network, dan Database Volume

```
./dc-down.sh --volumes
```

***

## Referensi

{% embed url="<https://github.com/DefectDojo/django-DefectDojo>" %}
github.com
{% endembed %}

{% embed url="<https://github.com/DefectDojo/django-DefectDojo/blob/dev/readme-docs/DOCKER.md>" %}
github.com
{% endembed %}

{% embed url="<https://docs.docker.com/engine/install/ubuntu/>" %}
docs.docker.com
{% endembed %}
