Skip to content
Browse files

add celeryworker volume in dev mode

  • Loading branch information...
ptrovatelli committed May 22, 2019
1 parent 5f218d1 commit 14ec03e33dc47bf13d390c7a8f9f6c05f696dde5
Showing with 11 additions and 2 deletions.
  1. +8 −2
  2. +3 −0
@@ -76,9 +76,15 @@ This will run the application based on merged configurations from docker-compose

* Volumes are mounted to synchronize between the host and the containers :
* static resources (nginx container)
* python code (django container) .
* python code (uwsgi and celeryworker containers).

* The `--py-autoreload 1` parameter in will make uwsgi handle python hot-reloading for the **uwsgi** container.
* Hot-reloading for the **celeryworker** container is not yet implemented. When working on deduplication for example, restart the celeryworker container with:

docker restart django-defectdojo_celeryworker_1

* The `--py-autoreload 1` parameter in will make uwsgi handle python hot-reloading.
* The mysql port is forwarded to the host so that you can access your database from outside the container.

To update changes in static resources, served by nginx, just refresh the browser with ctrl + F5.
@@ -7,6 +7,9 @@ services:
- '.:/app:z'
DD_DEBUG: 'on'
- '.:/app:z'
- './dojo/static/dojo:/usr/share/nginx/html/static/dojo'

0 comments on commit 14ec03e

Please sign in to comment.
You can’t perform that action at this time.