-
Notifications
You must be signed in to change notification settings - Fork 147
/
Copy pathdocker-compose.yml.example
137 lines (137 loc) · 4.26 KB
/
docker-compose.yml.example
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
version: "2"
services:
dongtai-mysql:
image: registry.cn-beijing.aliyuncs.com/huoxian_pub/dongtai-mysql:{ChangeThisVersion}
restart: always
ports:
- "3306:3306"
volumes:
- "mysql-vol:/var/lib/mysql:rw"
logging:
driver: "json-file"
options:
max-size: "10m"
dongtai-redis:
image: registry.cn-beijing.aliyuncs.com/huoxian_pub/dongtai-redis:{ChangeThisVersion}
restart: always
logging:
driver: "json-file"
options:
max-size: "10m"
dongtai-web:
image: registry.cn-beijing.aliyuncs.com/huoxian_pub/dongtai-web:{ChangeThisVersion}
restart: always
ports:
- "80:80"
volumes:
- "./nginx.conf:/etc/nginx/nginx.conf"
depends_on:
- dongtai-server
logging:
driver: "json-file"
options:
max-size: "10m"
dongtai-server:
image: "registry.cn-beijing.aliyuncs.com/huoxian_pub/dongtai-server:{ChangeThisVersion}"
restart: always
sysctls:
net.core.somaxconn: 1024
volumes:
- ./log/:/tmp/logstash/
- ./config-tutorial.ini:/opt/dongtai/dongtai_conf/conf/config.ini
logging:
driver: "json-file"
options:
max-size: "10m"
dongtai-worker-task:
image: "registry.cn-beijing.aliyuncs.com/huoxian_pub/dongtai-server:{ChangeThisVersion}"
restart: always
entrypoint: ["/opt/dongtai/deploy/docker/entrypoint.sh", "beat"]
volumes:
- ./config-tutorial.ini:/opt/dongtai/dongtai_conf/conf/config.ini
logging:
driver: "json-file"
options:
max-size: "10m"
dongtai-worker-beat:
image: "registry.cn-beijing.aliyuncs.com/huoxian_pub/dongtai-server:{ChangeThisVersion}"
restart: always
entrypoint: ["/opt/dongtai/deploy/docker/entrypoint.sh", "worker-beat"]
volumes:
- ./config-tutorial.ini:/opt/dongtai/dongtai_conf/conf/config.ini
logging:
driver: "json-file"
options:
max-size: "10m"
dongtai-worker-high-freq:
image: "registry.cn-beijing.aliyuncs.com/huoxian_pub/dongtai-server:{ChangeThisVersion}"
restart: always
entrypoint: ["/opt/dongtai/deploy/docker/entrypoint.sh", "worker-high-freq"]
environment:
- DONGTAI_CONCURRENCY=-P gevent --concurrency=128
volumes:
- ./config-tutorial.ini:/opt/dongtai/dongtai_conf/conf/config.ini
logging:
driver: "json-file"
options:
max-size: "10m"
dongtai-worker-sca:
image: "registry.cn-beijing.aliyuncs.com/huoxian_pub/dongtai-server:{ChangeThisVersion}"
restart: always
entrypoint: ["/opt/dongtai/deploy/docker/entrypoint.sh", "worker-sca"]
environment:
- DONGTAI_CONCURRENCY=-P gevent --concurrency=10
volumes:
- ./config-tutorial.ini:/opt/dongtai/dongtai_conf/conf/config.ini
logging:
driver: "json-file"
options:
max-size: "10m"
dongtai-worker-es:
image: "registry.cn-beijing.aliyuncs.com/huoxian_pub/dongtai-server:{ChangeThisVersion}"
restart: always
entrypoint: ["/opt/dongtai/deploy/docker/entrypoint.sh", "worker-es"]
environment:
- DONGTAI_CONCURRENCY=-P gevent --concurrency=64
volumes:
- ./config-tutorial.ini:/opt/dongtai/dongtai_conf/conf/config.ini
logging:
driver: "json-file"
options:
max-size: "10m"
dongtai-worker-other:
image: "registry.cn-beijing.aliyuncs.com/huoxian_pub/dongtai-server:{ChangeThisVersion}"
restart: always
entrypoint: ["/opt/dongtai/deploy/docker/entrypoint.sh", "worker-other"]
volumes:
- ./config-tutorial.ini:/opt/dongtai/dongtai_conf/conf/config.ini
logging:
driver: "json-file"
options:
max-size: "10m"
dongtai-logrotate:
image: registry.cn-beijing.aliyuncs.com/huoxian_pub/dongtai-logrotate:{ChangeThisVersion}
restart: always
user: root
volumes:
- "./log/:/tmp/logstash/"
logging:
driver: "json-file"
options:
max-size: "10m"
dongtai-logstash:
image: registry.cn-beijing.aliyuncs.com/huoxian_pub/dongtai-logstash:{ChangeThisVersion}
restart: always
user: root
environment:
- DATABASE=dongtai-mysql:3306/dongtai_webapi
- USERNAME=root
- PASSWORD=dongtai-iast
volumes:
- "./log/:/tmp/logstash/"
logging:
driver: "json-file"
options:
max-size: "10m"
volumes:
mysql-vol: