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