-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
44 lines (42 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
services:
env_django:
image: vulmatch
extra_hosts:
- "host.docker.internal:host-gateway"
build: .
volumes:
- .:/usr/src/app/
- ./www:/var/www/
environment:
- DJANGO_SETTINGS_MODULE=vulmatch.settings
- CELERY_BROKER_URL=redis://redis:6379/0
- result_backend=redis://redis:6379/1
- DEBUG=1
env_file:
- ./.env
command: >
bash -c "
python manage.py collectstatic --no-input &&
python manage.py makemigrations &&
python manage.py migrate &&
python -m vulmatch.worker.populate_dbs
"
django:
extends: env_django
command: gunicorn vulmatch.wsgi:application --reload --bind 0.0.0.0:8005
ports:
- 8005:8005
depends_on:
- celery
celery:
extends: env_django
command: celery -A vulmatch.worker worker -l INFO
depends_on:
redis:
condition: service_started
env_django:
condition: service_completed_successfully
redis:
image: "redis:alpine"
volumes:
pgdata: