-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (77 loc) Β· 1.95 KB
/
docker-compose.yml
File metadata and controls
82 lines (77 loc) Β· 1.95 KB
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
version: '3.8'
services:
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 5s
retries: 10
rabbitmq:
build:
context: ./
dockerfile: Dockerfile.rabbitmq
image: rabbitmq:3-management
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
- "61613:61613"
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD}
es:
build:
context: ./
dockerfile: Dockerfile.elasticsearch
container_name: es
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9200/_cluster/health" ]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
volumes:
- es-data:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
kibana:
build:
context: ./
dockerfile: Dockerfile.kibana
container_name: kibana
ports:
- "5601:5601"
depends_on:
- es
logstash:
build:
context: ./
dockerfile: Dockerfile.logstash
container_name: logstash
environment:
- DB_URL_DATA=${LOGSTASH_DB_URL}
- DB_USER_DATA=${LOGSTASH_DB_USER}
- DB_PASSWORD_DATA=${LOGSTASH_DB_PASSWORD}
- ES_HOST=${ES_HOST}
- INDEX_NAME=${INDEX_NAME}
- INDEX_CONFIG_PATH=${INDEX_CONFIG_PATH}
volumes:
- ./logstash/pipelines/logstash.conf:/usr/share/logstash/pipelines/logstash.conf
- ./logstash/mysql-connector-j-9.1.0.jar:/usr/share/logstash/mysql-connector-j-9.1.0.jar
- ./logstash/index-config.json:/usr/share/logstash/index-config.json
- ./init-index.sh:/usr/share/logstash/init-index.sh
ports:
- "9600:9600"
- "5044:5044"
entrypoint: ["/bin/bash", "-c", "./init-index.sh"]
depends_on:
- es
volumes:
mysql-data:
driver: local
es-data:
driver: local