-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose.yml
158 lines (145 loc) · 3.75 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
version: '3'
services:
elasticsearch:
image: elasticsearch:6.8.20
container_name: yacy-grid-elasticsearch
environment:
- cluster.name=elasticsearch
- node.name="yacygrid-node"
- node.master=true
- node.data=true
- network.bind_host=0.0.0.0
- network.host=0.0.0.0
- http.enabled=true
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
volumes:
- ./conf/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- yacy-grid-elasticsearch-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
expose:
- "9300"
- "9200"
healthcheck:
test: curl -f http://elasticsearch:9200/_cluster/health?wait_for_status=yellow&timeout=50s || exit 1
interval: 10s
timeout: 3s
retries: 20
rabbitmq:
image: rabbitmq:3.9-management-alpine
container_name: yacy-grid-rabbitmq
ports:
- 15672:15672
- 4369:4369
- 5672:5672
- 35197:35197
- 15671:15671
- 15691-15692:15691-15692
- 25672:25672
environment:
- RABBITMQ_CONFIG_FILE=/etc/rabbitmq/rabbitmq.conf
volumes:
- ./conf/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
- yacy-grid-rabbitmq:/var/lib/rabbitmq
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 10s
timeout: 3s
retries: 20
minio:
image: quay.io/minio/minio
container_name: yacy-grid-minio
command: server --console-address ":9001" /data
environment:
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=12345678
volumes:
- yacy-grid-minio:/data
ports:
- 9000:9000
- 9001:9001
healthcheck:
test: curl -f http://minio:9001/login || exit 1
interval: 10s
timeout: 3s
retries: 20
mcp:
image: yacy/yacy_grid_mcp
container_name: yacy_grid_mcp
environment:
- grid_ftp_active=false
- grid_s3_address=admin:[email protected]:9000
- grid_s3_active=true
- grid_broker_address=guest:guest@rabbitmq:5672
- grid_assets_delete=true
- grid_elasticsearch_address=elasticsearch:9300
- grid.ftp.active=false
- grid.s3.address=admin:[email protected]:9000
- grid.s3.active=true
- grid.broker.address=guest:guest@rabbitmq:5672
- grid.assets.delete=true
- grid.elasticsearch.address=elasticsearch:9300
depends_on:
minio:
condition: service_healthy
rabbitmq:
condition: service_healthy
elasticsearch:
condition: service_healthy
ports:
- 8100:8100
healthcheck:
test: wget -nv -t1 --spider 'http://mcp:8100/yacy/grid/mcp/info/status.json' || exit 1
interval: 10s
timeout: 3s
retries: 20
crawler:
image: yacy/yacy_grid_crawler
container_name: yacy_grid_crawler
environment:
- grid_mcp_address=mcp:8100
depends_on:
mcp:
condition: service_healthy
ports:
- 8300:8300
loader:
image: yacy/yacy_grid_loader
container_name: yacy_grid_loader
environment:
- grid_mcp_address=mcp:8100
depends_on:
mcp:
condition: service_healthy
ports:
- 8200:8200
parser:
image: yacy/yacy_grid_parser
container_name: yacy_grid_parser
environment:
- grid_mcp_address=mcp:8100
depends_on:
mcp:
condition: service_healthy
ports:
- 8500:8500
search:
image: yacy/yacy_grid_search
container_name: yacy_grid_search
environment:
- grid_mcp_address=mcp:8100
depends_on:
mcp:
condition: service_healthy
ports:
- 8800:8800
volumes:
yacy-grid-elasticsearch-data:
yacy-grid-rabbitmq:
yacy-grid-minio: