-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yaml
55 lines (50 loc) · 1.25 KB
/
docker-compose.yaml
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
version: '3.2'
services:
elasticsearch:
image: elasticsearch:7.17.6
ports:
- "9200:9200"
- "9300:9300"
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
ELASTIC_PASSWORD: elastic
discovery.type: single-node
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
healthcheck:
test: ["CMD", "curl", "-f", "http://elasticsearch:9200/_cluster/health?wait_for_status=green"]
# Otherwise elasticsearch cannot dl the geoip map because mozi take all the bandwidth
interval: 50s
timeout: 30s
retries: 5
networks:
- elk
kibana:
image: kibana:7.17.6
ports:
- "5601:5601"
environment:
- ELASTICSEARCH_USERNAME=elastic
- ELASTICSEARCH_PASSWORD=elastic
networks:
- elk
depends_on:
- elasticsearch
mozitools:
image: mozitools
build:
context: .
dockerfile: Containerfile
container_name: mozitools
command: ["track", "--index", "mozi-test", "--url" , "http://elasticsearch:9200", "--user", "elastic", "--pass", "elastic"]
depends_on:
elasticsearch:
condition: service_healthy
networks:
- elk
volumes:
elasticsearch-data:
driver: local
networks:
elk:
driver: bridge