-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
89 lines (79 loc) · 1.76 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
services:
question:
build: ./backend/question-service
ports:
- "3002:3002"
user:
build: ./backend/user-service
ports:
- "3001:3001"
code-execution-rabbitmq:
image: rabbitmq:4.0-management
ports:
- "7000:5672"
code-execution-redis:
image: redis:alpine
ports:
- "7001:6379"
code-execution-server:
build: ./backend/code-execution-service/server
ports:
- "7002:7002"
depends_on:
- code-execution-rabbitmq
- code-execution-redis
code-execution-worker:
build: ./backend/code-execution-service/worker
pids_limit: 60
cpus: 1
mem_limit: 150M
depends_on:
- code-execution-rabbitmq
- code-execution-redis
deploy:
replicas: 4
restart_policy:
condition: any
delay: 3s
window: 5s
rabbitmq:
image: dedsecrattle/rabbitmq-delayed-exchange
ports:
- "5672:5672" # RabbitMQ message broker
- "15672:15672" # RabbitMQ management plugin
healthcheck:
test: ["CMD", "rabbitmqctl", "status"]
interval: 10s
timeout: 5s
retries: 5
communication:
build: ./backend/communication-service
ports:
- "3004:3004"
matching:
build: ./backend/matching-service
depends_on:
rabbitmq:
condition: service_healthy
ports:
- "3003:3003"
environment:
DATABASE_URL: "file:./dev.db"
RABBITMQ_URL: "amqp://rabbitmq:5672"
collaboration:
build: ./backend/collaboration-service
ports:
- "3005:3005"
frontend:
build: ./frontend
env_file:
- ./frontend/nginx/.env
ports:
- "80:80"
depends_on:
- user
- matching
- question
- collaboration
- communication
- rabbitmq