-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathdocker-compose.logging.yml
102 lines (97 loc) · 2.22 KB
/
docker-compose.logging.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
version: "3.1"
networks:
logging:
monitoring_monitoring:
external: true
services:
logspout:
image: bekt/logspout-logstash:latest
networks:
- logging
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
ROUTE_URIS: logstash://logstash:5000
DOCKER_LABELS: "true"
deploy:
mode: global
resources:
limits:
cpus: '0.25'
memory: 64M
reservations:
cpus: '0.25'
memory: 32M
logstash:
image: basi/logstash:${LOGSTASH_VERSION:-v0.8.0}
networks:
- logging
environment:
DEBUG: "${LOGSTASH_DEBUG:-false}"
LOGSPOUT: ignore
ELASTICSEARCH_USER: ${ELASTICSEARCH_LOGS_USER}
ELASTICSEARCH_PASSWORD: ${ELASTICSEARCH_LOGS_PASSWORD}
ELASTICSEARCH_SSL: ${ELASTICSEARCH_LOGS_SSL}
ELASTICSEARCH_ADDR: ${ELASTICSEARCH_LOGS_ADDR:-elasticsearch}
ELASTICSEARCH_PORT: ${ELASTICSEARCH_LOGS_PORT:-9200}
deploy:
mode: replicated
replicas: 2
resources:
limits:
cpus: '0.25'
memory: 800M
reservations:
cpus: '0.25'
memory: 400M
elasticsearch:
image: elasticsearch:2
ports:
- 9200:9200
networks:
- logging
- monitoring_monitoring
environment:
- LOGSPOUT=ignore
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
deploy:
mode: replicated
replicas: 1
resources:
limits:
cpus: '2'
memory: 640M
reservations:
cpus: '0.5'
memory: 512M
kibana:
image: kibana:4
networks:
- logging
ports:
- "5601:5601"
environment:
- LOGSPOUT=ignore
- ELASTICSEARCH_URL=http://elasticsearch:9200
deploy:
mode: replicated
replicas: 1
resources:
limits:
cpus: '0.25'
memory: 384M
reservations:
cpus: '0.25'
memory: 256M