-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
219 lines (213 loc) · 4.46 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
version: '2'
services:
mysql:
container_name: mysql-dev
privileged: true
image: 'mysql:5.6.38'
restart: unless-stopped
volumes:
- ~/develop/mysql/5.6.38/:/var/lib/mysql
ports:
- "3306:3306"
expose:
- "3306"
environment:
- MYSQL_ROOT_PASSWORD=asa
networks:
- backend
redis:
container_name: redis-dev
privileged: true
image: 'redis:latest'
restart: unless-stopped
expose:
- "6379"
ports:
- "6379:6379"
networks:
- backend
easyswoole2:
container_name: es2
build:
context: ""
dockerfile: easyswoole2
privileged: true
restart: unless-stopped
volumes:
- ~/develop/php:/mnt/server/php # 项目目录
- ~/develop/logs/php:/mnt/logs/php # 日志目录
- ~/develop/temp/php:/mnt/temp/php # temp目录
ports:
- "20000:20000"
- "20100:20100"
- "20200:20200"
- "20300:20300"
- "20400:20400"
- "20500:20500"
- "20101:20101"
- "20201:20201"
- "20301:20301"
- "20302:20302"
- "20303:20303"
- "20304:20304"
- "20305:20305"
- "20306:20306"
- "20401:20401"
- "20501:20501"
- "2222:22"
networks:
- backend
logging:
driver: "json-file"
options:
max-size: "1g"
easyswoole3:
container_name: es3
build:
context: ""
dockerfile: easyswoole3
privileged: true
image: 'alanchen365/easyswoole3:latest'
restart: unless-stopped
volumes:
- ~/develop/php:/mnt/server/php # 项目目录
- ~/develop/logs/php:/mnt/logs/php # 日志目录
- ~/develop/temp/php:/mnt/temp/php # temp目录
ports:
- "5001:5001"
- "5002:5002"
- "5003:5003"
- "5004:5004"
- "5005:5005"
- "5006:5006"
- "5007:5007"
- "5008:5008"
- "5009:5009"
- "5010:5010"
- "5011:5011"
- "5012:5012"
- "5013:5013"
- "5014:5014"
- "5015:5015"
- "5016:5016"
- "5017:5017"
- "5018:5018"
- "5019:5019"
- "5020:5020"
- "5021:5021"
- "5022:5022"
- "5023:5023"
- "5024:5024"
- "5025:5025"
- "5026:5026"
- "5027:5027"
- "5028:5028"
- "5029:5029"
- "5030:5030"
- "5050:5050"
- "5051:5051"
- "5052:5052"
- "5053:5053"
- "5054:5054"
- "5055:5055"
- "5056:5056"
- "5057:5057"
- "5058:5058"
- "5059:5059"
- "5060:5060"
- "5061:5061"
- "5062:5062"
- "5063:5063"
- "5064:5064"
- "5065:5065"
- "5066:5066"
- "5067:5067"
- "5068:5068"
- "5069:5069"
- "5070:5070"
networks:
- backend
#extra_hosts:
# - "github.com:199.232.69.194"
logging:
driver: "json-file"
options:
max-size: "1g"
dns:
- 114.114.114.114
python3:
container_name: py3
build:
context: ""
dockerfile: python3
privileged: true
image: 'alanchen365/python3:latest'
restart: unless-stopped
volumes:
- ~/develop/python:/mnt/server/python # 项目目录
- ~/develop/logs/python:/mnt/logs/python # 日志目录
- ~/develop/temp/python:/mnt/temp/python # temp目录
ports:
- "4001:4001"
- "4002:4002"
- "4003:4003"
- "4004:4004"
- "4005:4005"
- "4006:4006"
- "4007:4007"
- "4008:4008"
- "4009:4009"
- "4010:4010"
- "4011:4011"
- "4012:4012"
- "4013:4013"
- "4014:4014"
- "4015:4015"
- "4016:4016"
- "4017:4017"
- "4018:4018"
- "4019:4019"
- "4020:4020"
- "4021:4021"
- "4022:4022"
- "4023:4023"
- "4024:4024"
- "4025:4025"
- "4026:4026"
- "4027:4027"
- "4028:4028"
- "4029:4029"
- "4030:4030"
- "4050:4050"
- "4051:4051"
- "4052:4052"
- "4053:4053"
- "4054:4054"
- "4055:4055"
- "4056:4056"
- "4057:4057"
- "4058:4058"
- "4059:4059"
- "4060:4060"
- "4061:4061"
- "4062:4062"
- "4063:4063"
- "4064:4064"
- "4065:4065"
- "4066:4066"
- "4067:4067"
- "4068:4068"
- "4069:4069"
- "4070:4070"
networks:
- backend
#extra_hosts:
# - "github.com:199.232.69.194"
logging:
driver: "json-file"
options:
max-size: "1g"
dns:
- 114.114.114.114
networks:
backend: