-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (42 loc) · 889 Bytes
/
docker-compose.yml
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
45
46
47
version: '3.8'
services:
web:
build: .
command: gunicorn --bind 0.0.0.0:8000 antivirus_api.wsgi:application
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
- rabbitmq
- redis
rabbitmq:
image: "rabbitmq:3-management"
ports:
- "5672:5672"
- "15672:15672" # RabbitMQ management UI
healthcheck:
test: ["CMD", "rabbitmqctl", "status"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: "redis:alpine"
celery:
build: .
command: celery -A antivirus_api worker --loglevel=info --pool=solo
volumes:
- .:/app
depends_on:
rabbitmq:
condition: service_healthy
redis:
condition: service_started
frontend:
build:
context: .
dockerfile: antivirus-frontend/Dockerfile
ports:
- "5173:80"
depends_on:
- web