-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (41 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
42 lines (41 loc) · 1.15 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
services:
django_env:
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- DEBUG=1
- CELERY_BROKER_URL=redis://redis:6379/0
- result_backend=redis://redis:6379/1
env_file:
- ./.env
build: .
image: django-stixify
volumes:
- .:/usr/src/app
command: >
bash -c "
python manage.py makemigrations &&
python manage.py migrate
"
django:
extends: django_env
command: gunicorn stixify.wsgi:application --bind 0.0.0.0:8004 --reload
ports:
- 8004:8004
depends_on:
redis:
condition: service_started
celery:
extends: django_env
command: celery -A stixify.worker worker -l INFO
depends_on:
- django
- redis
environment:
- CLASSIFIER_MODEL_PATH=/opt/clusters/classfier_hdbscan.joblib
volumes:
- clusters:/opt/clusters/
redis:
image: "redis:alpine"
volumes:
clusters: