Skip to content

Commit 14ec03e

Browse files
committed
add celeryworker volume in dev mode
1 parent 5f218d1 commit 14ec03e

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

DOCKER.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,15 @@ This will run the application based on merged configurations from docker-compose
7676

7777
* Volumes are mounted to synchronize between the host and the containers :
7878
* static resources (nginx container)
79-
* python code (django container) .
79+
* python code (uwsgi and celeryworker containers).
80+
81+
* The `--py-autoreload 1` parameter in entrypoint-uwsgi-dev.sh will make uwsgi handle python hot-reloading for the **uwsgi** container.
82+
* Hot-reloading for the **celeryworker** container is not yet implemented. When working on deduplication for example, restart the celeryworker container with:
83+
84+
```
85+
docker restart django-defectdojo_celeryworker_1
86+
```
8087

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

8490
To update changes in static resources, served by nginx, just refresh the browser with ctrl + F5.

docker-compose.override.dev.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ services:
77
- '.:/app:z'
88
environment:
99
DD_DEBUG: 'on'
10+
celeryworker:
11+
volumes:
12+
- '.:/app:z'
1013
nginx:
1114
volumes:
1215
- './dojo/static/dojo:/usr/share/nginx/html/static/dojo'

0 commit comments

Comments
 (0)