Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.dockerignore
Dockerfile
docker.env
.env
docker-compose.yml


Expand Down
14 changes: 9 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3"

services:
db:
image: postgres:15
Expand Down Expand Up @@ -35,9 +33,11 @@ services:

vulnerablecode_scheduler:
build: .
command: wait-for-it web:8000 -- python ./manage.py run_scheduler
command: wait-for-it -t 60 vulnerablecode:8000 -- python ./manage.py run_scheduler
env_file:
- docker.env
- path: .env
required: false
volumes:
- /etc/vulnerablecode/:/etc/vulnerablecode/
depends_on:
Expand All @@ -47,9 +47,11 @@ services:

vulnerablecode_rqworker:
build: .
command: wait-for-it web:8000 -- python ./manage.py rqworker default
command: wait-for-it -t 60 vulnerablecode:8000 -- python ./manage.py rqworker default
env_file:
- docker.env
- path: .env
required: false
volumes:
- /etc/vulnerablecode/:/etc/vulnerablecode/
depends_on:
Expand All @@ -59,9 +61,11 @@ services:

vulnerablecode_rqworker_high:
build: .
command: wait-for-it web:8000 -- python ./manage.py rqworker high
command: wait-for-it -t 60 vulnerablecode:8000 -- python ./manage.py rqworker high
env_file:
- docker.env
- path: .env
required: false
volumes:
- /etc/vulnerablecode/:/etc/vulnerablecode/
depends_on:
Expand Down