forked from RiFi2k/dockerize-your-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logging-compose.yml
71 lines (65 loc) · 1.53 KB
/
logging-compose.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
version: "2.3"
services:
elasticsearch:
build:
context: logging/elasticsearch/
container_name: elasticsearch
volumes:
- elasticsearch:/usr/share/elasticsearch/data
ulimits:
memlock:
soft: -1
hard: -1
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
mem_limit: 2g
logstash:
build:
context: logging/logstash/
volumes:
- ./logging/logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
- ./logging/logstash/pipeline:/usr/share/logstash/pipeline:ro
environment:
LS_JAVA_OPTS: "-Xmx750m -Xms750m"
depends_on:
- elasticsearch
kibana:
build:
context: logging/kibana/
container_name: kibana
depends_on:
- elasticsearch
logging:
driver: json-file
options:
max-size: "4m"
max-file: "10"
environment:
- VIRTUAL_HOST=kibana.example.com
- VIRTUAL_PORT=5601
- LETSENCRYPT_HOST=kibana.example.com
- LETSENCRYPT_EMAIL=you@youremail.com
logspout:
build:
context: logging/extensions/logspout/
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
ROUTE_URIS: logstash://logstash:5000
LOGSTASH_TAGS: docker-elk
depends_on:
- logstash
restart: on-failure
logging:
driver: json-file
options:
max-size: "4m"
max-file: "10"
volumes:
elasticsearch:
networks:
default:
external:
name: webproxy