forked from deviantony/docker-elk
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-rabbitmq.yml
59 lines (58 loc) · 1.39 KB
/
docker-compose-rabbitmq.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
version: '2'
services:
elasticsearch:
extends:
file: base.yml
service: elasticsearch
cpu_shares: 20
volumes:
- ${ELASTICSEARCH_DATA}:/usr/share/elasticsearch/data
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
ports:
- "${ELASTICSEARCH_HTTP_PORT}:9200"
- "${ELASTICSEARCH_TCP_PORT}:9300"
logstash-indexer:
extends:
file: base.yml
service: logstash-indexer
volumes:
- ./logstash/indexer/ls-rabbitmq.conf:/etc/logstash.conf:ro
links:
- rabbitmq
- elasticsearch
cpu_shares: 8
logstash-shipper:
extends:
file: base.yml
service: logstash-shipper
volumes:
- ./logstash/shipper/ls-rabbitmq.conf:/etc/logstash.conf:ro
links:
- rabbitmq
cpu_shares: 8
kibana:
extends:
file: base.yml
service: kibana
links:
- elasticsearch
cpu_shares: 2
rabbitmq:
image: rabbitmq:${RABBITMQ_VERSION}
volumes:
- ${RABBITMQ_DATA}:/var/lib/rabbitmq
ports:
- "${RABBITMQ_MGR_PORT}:15672"
mem_limit: ${RABBITMQ_MEM_LIMIT}
memswap_limit: ${RABBITMQ_MEM_LIMIT}
cpu_shares: 4
restart: always
hostname: rabbitmq.elk
networks:
- elk
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASS}
networks:
elk:
driver: bridge