-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
82 lines (60 loc) · 1.19 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
version: '2.4'
services:
rabbitmq:
image: 'rabbitmq:3.8.14-management-alpine'
restart: always
ports:
- "15672:15672"
redis-server:
image: 'redis:latest'
restart: always
server:
build: ./server
restart: always
ports:
- "8080:8080"
- "9090:9090"
worker:
build: ./worker
restart: always
pids_limit: 50
#cpus: 0.5
scale : 2
init: true
# cpus: "1"
mem_limit: 150M
# worker02:
# build: ./worker
# restart: always
# pids_limit: 60
# # cpus: "1"
# # mem_limit: 150m
# worker03:
# build: ./worker
# restart: always
# pids_limit: 60
# # cpus: "1"
# # mem_limit: 150m
# worker04:
# build: ./worker
# restart: always
# # cpus: "1"
# # mem_limit: 150m
# worker05:
# build: ./worker
# restart: always
# # cpus: "1"
# # mem_limit: 150m
# worker06:
# build: ./worker
# restart: always
# # cpus: "1"
# # mem_limit: 150m
# deploy:
# resources:
# limits:
# cpus: '0.50'
# memory: 50M
# reservations:
# cpus: '0.25'
# memory: 20M