-
Notifications
You must be signed in to change notification settings - Fork 0
/
graylog.yaml
88 lines (82 loc) · 1.99 KB
/
graylog.yaml
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
# Based on: https://docs.graylog.org/en/3.3/pages/installation/docker.html
version: "3.8"
volumes:
mongo_data:
driver: local
es_data:
driver: local
graylog_data:
driver: local
secrets:
graylog_password_secret:
external: true
graylog_root_password_sha2:
external: true
networks:
graylog:
driver: overlay
services:
# MongoDB: https://hub.docker.com/_/mongo/
mongo:
image: mongo:3
volumes:
- mongo_data:/data/db
networks:
- graylog
deploy:
resources:
limits:
memory: 512M
# Elasticsearch: https://hub.docker.com/_/elasticsearch
elasticsearch:
image: elasticsearch:6.8.12
environment:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms256M -Xmx256M
volumes:
- es_data:/usr/share/elasticsearch/data
networks:
- graylog
deploy:
resources:
limits:
memory: 768M
# Option 'ulimits' does not work with docker swarm
# https://stackoverflow.com/a/55556893/12869323
# ulimits:
# memlock:
# soft: -1
# hard: -1
# Graylog: https://hub.docker.com/r/graylog/graylog/
graylog:
image: graylog/graylog:3.3
ports:
# Graylog web interface and REST API
- 9000:9000
# Syslog TCP
- 1514:1514
# Syslog UDP
- 1514:1514/udp
# GELF TCP
- 12201:12201
# GELF UDP
- 12201:12201/udp
environment:
- GRAYLOG_PASSWORD_SECRET__FILE=/run/secrets/graylog_password_secret
- GRAYLOG_ROOT_PASSWORD_SHA2__FILE=/run/secrets/graylog_root_password_sha2
volumes:
- graylog_data:/usr/share/graylog/data
secrets:
- graylog_password_secret
- graylog_root_password_sha2
networks:
- graylog
deploy:
resources:
limits:
memory: 768M
# Override the Graylog's image HEALTHCHECK to be less strict
# https://community.graylog.org/t/graylog-docker-unhealthy-container/12945/7
healthcheck:
timeout: 30s
start_period: 120s