forked from RD17/ambar
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
executable file
·210 lines (209 loc) · 4.82 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
version: "2.1"
networks:
internal_network:
ipam:
config:
- subnet: 172.19.0.0/16
gateway: 172.19.0.11
services:
db:
# restart: always
privileged: true
networks:
- internal_network
image: land007/ambar-mongodb:latest
environment:
- cacheSizeGB=2
- LANIP=172.19.0.1
volumes:
- ~/docker/ambar/db:/data/db
expose:
- "27017"
es:
# restart: always
privileged: true
networks:
- internal_network
image: land007/ambar-es:latest
expose:
- "9200"
environment:
- cluster.name=ambar-es
- ES_JAVA_OPTS=-Xms2g -Xmx2g
- LANIP=172.19.0.1
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- ~/docker/ambar/es:/usr/share/elasticsearch/data
rabbit:
# restart: always
privileged: true
networks:
- internal_network
image: land007/ambar-rabbit:latest
hostname: rabbit
expose:
- "15672"
- "5672"
environment:
- LANIP=172.19.0.1
volumes:
- ~/docker/ambar/rabbit:/var/lib/rabbitmq
redis:
# restart: always
privileged: true
sysctls:
- net.core.somaxconn=1024
networks:
- internal_network
image: land007/ambar-redis:latest
expose:
- "6379"
environment:
- LANIP=172.19.0.1
serviceapi:
depends_on:
redis:
condition: service_healthy
rabbit:
condition: service_healthy
es:
condition: service_healthy
db:
condition: service_healthy
# restart: always
privileged: true
networks:
- internal_network
image: land007/ambar-serviceapi:latest
expose:
- "8081"
environment:
- mongoDbUrl=mongodb://db:27017/ambar_data
- elasticSearchUrl=http://es:9200
- redisHost=redis
- redisPort=6379
- rabbitHost=amqp://rabbit
- langAnalyzer=ambar_cn
- SLAO_HOSTNAME=ambar
- SLAO_API_KEY=
- LANIP=172.19.0.1
webapi:
depends_on:
serviceapi:
condition: service_healthy
# restart: always
privileged: true
networks:
- internal_network
image: land007/ambar-webapi:latest
expose:
- "8080"
# ports:
# - "8080:8080"
environment:
- uiLang=cn
- mongoDbUrl=mongodb://db:27017/ambar_data
- elasticSearchUrl=http://es:9200
- redisHost=redis
- redisPort=6379
- serviceApiUrl=http://serviceapi:8081
- rabbitHost=amqp://rabbit
- SLAO_HOSTNAME=ambar
- SLAO_API_KEY=
- LANIP=172.19.0.1
frontend:
depends_on:
webapi:
condition: service_healthy
image: land007/ambar-frontend:latest
# restart: always
privileged: true
networks:
- internal_network
# ports:
# - "3000:80"
expose:
- "80"
environment:
- api=
- LANIP=172.19.0.1
pipeline0:
depends_on:
serviceapi:
condition: service_healthy
image: land007/ambar-pipeline:latest
# restart: always
privileged: true
networks:
- internal_network
environment:
- id=0
- api_url=http://serviceapi:8081
- rabbit_host=amqp://rabbit
- LANIP=172.19.0.1
crawler2:
depends_on:
serviceapi:
condition: service_healthy
image: land007/ambar-local-crawler:latest
# restart: always
privileged: true
networks:
- internal_network
expose:
- "8082"
environment:
- name=crawler2
- LANIP=172.19.0.1
volumes:
- ~/docker/ambar/test:/usr/data
node-http-proxy:
depends_on:
frontend:
condition: service_healthy
webapi:
condition: service_healthy
image: land007/node-http-proxy:latest
# restart: always
privileged: true
networks:
- internal_network
expose:
- "80"
ports:
- "20080:80"
environment:
- http_proxy_domains=,
- http_proxy_paths=/api/,/
- http_proxy_hosts=webapi,frontend
- http_proxy_ports=8080,80
- http_proxy_pretends=true,true
- ws_proxy_paths=/api/
- ws_proxy_hosts=webapi
- ws_proxy_ports=8080
- LANIP=172.19.0.1
volumes:
- ~/docker/node-http-proxy:/node
portainer:
# restart: always
privileged: true
networks:
- internal_network
image: land007/portainer:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ~/docker/portainer_data1:/data
expose:
- "9000"
ports:
- "9001:9000"
environment:
- LANIP=172.19.0.1