-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
57 lines (57 loc) · 1 KB
/
docker-compose.yaml
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
version: '3.7'
services:
db:
image: mysql:8
ports:
- '3306:3306'
restart: 'unless-stopped'
environment:
- MYSQL_ROOT_PASSWORD=hoplin1234!
- MYSQL_ROOT_HOST=%
- MYSQL_DATABASE=judge
networks:
- system
api:
image: online-judge
ports:
- '3001:3000'
restart: 'unless-stopped'
env_file:
- ./.docker.env
depends_on:
- db
- rmq
- worker
networks:
- system
redis:
image: redis
ports:
- '6379:6379'
networks:
- system
rmq:
image: rabbitmq:3-management
ports:
- '1883:1883'
- '15672:15672'
- '5672:5672'
restart: 'unless-stopped'
networks:
- system
environment:
- RABBITMQ_DEFAULT_USER=root
- RABBITMQ_DEFAULT_PASS=password
worker:
image: online-judge
env_file:
- ./.docker.worker.env
restart: 'unless-stopped'
depends_on:
- db
- rmq
networks:
- system
networks:
system:
driver: bridge