forked from deviantony/docker-elk
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-redis.yml
57 lines (56 loc) · 1.33 KB
/
docker-compose-redis.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
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-redis.conf:/etc/logstash.conf:ro
links:
- redis
- elasticsearch
cpu_shares: 8
logstash-shipper:
extends:
file: base.yml
service: logstash-shipper
volumes:
- ./logstash/shipper/ls-redis.conf:/etc/logstash.conf:ro
links:
- redis
cpu_shares: 8
kibana:
extends:
file: base.yml
service: kibana
links:
- elasticsearch
cpu_shares: 2
redis:
image: redis:${REDIS_VERSION}
command: redis-server /usr/local/etc/redis/redis.conf
ports:
- "${REDIS_PORT}:6379"
volumes:
- ${REDIS_DATA}:/data
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf:ro
mem_limit: ${REDIS_MEM_LIMIT}
memswap_limit: ${REDIS_MEM_LIMIT}
cpu_shares: 2
restart: always
networks:
- elk
networks:
elk:
driver: bridge