-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
113 lines (102 loc) · 2.67 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
version: '3.9'
services:
rabbitmq:
image: rabbitmq:3-management-alpine
#container_name: rabbitmq
command: rabbitmq-server
ports:
- 5672:5672 #amqp
- 15672:15672 #http
- 15692:15692 #prometheus
healthcheck:
test: [ "CMD", "rabbitmqctl", "status"]
interval: 5s
timeout: 20s
retries: 5
minio:
image: minio/minio
#container_name: minio
ports:
- 9000:9000
- 9001:9001
env_file:
- ./services/minio/env/minio.env
command: server /data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 20s
timeout: 20s
retries: 5
volumes:
- ./services/minio/data:/data
restart: always
depends_on:
rabbitmq:
condition: service_healthy
bucket_watcher:
image: bucket_watcher
#container_name: bucket_watcher
env_file:
- services/bucket_watcher/env/bucket_watcher.env
restart: always
build:
context: ./services/bucket_watcher/
dockerfile: Dockerfile
depends_on:
rabbitmq:
condition: service_healthy
minio:
condition: service_healthy
sitemap_crawler:
image: sitemap_crawler
#container_name: sitemap_crawler
env_file:
- services/sitemap_crawler/env/crawler.env
restart: always
build:
context: ./services/sitemap_crawler/
dockerfile: Dockerfile
depends_on:
rabbitmq:
condition: service_healthy
minio:
condition: service_healthy
elasticsearch:
build:
context: ./services/elk/elasticsearch/
volumes:
- ./services/elk/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro,z
- ./services/elk/elasticsearch/:/usr/share/elasticsearch/data:z
ports:
- "9200:9200"
- "9300:9300"
environment:
ES_JAVA_OPTS: "-Xms1g -Xmx1g"
ELASTIC_PASSWORD: elastic
logstash:
build:
context: ./services/elk/logstash/
volumes:
- ./services/elk/logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro,Z
- ./services/elk/logstash/pipeline:/usr/share/logstash/pipeline:ro,Z
ports:
- "5000:5000"
- "9600:9600"
environment:
LS_JAVA_OPTS: "-Xmx256m -Xms256m"
depends_on:
rabbitmq:
condition: service_healthy
minio:
condition: service_healthy
elasticsearch:
condition: service_started
kibana:
build:
context: ./services/elk/kibana/
volumes:
- ./services/elk/kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml:ro,Z
ports:
- "5601:5601"
depends_on:
- elasticsearch