This repository has been archived by the owner on Jul 3, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (81 loc) · 3.36 KB
/
docker-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
72
73
74
75
76
77
78
79
80
81
82
83
84
version: '2'
services:
neuralswarm:
image: sshaddicts/neuralswarm:latest
depends_on:
- crossbar
crossbar:
image: sshaddicts/crossbar-for-neuralswarm:latest
ports:
- "7778:7778"
mongo:
image: "mongo:3"
volumes:
- ./mongo:/data/db
elasticsearch:
image: "elasticsearch:2"
command: "elasticsearch -Des.cluster.name='graylog'"
environment:
ES_MIN_MEM: '256m'
ES_MAX_MEM: '256m'
volumes:
- ./elasticsearch:/usr/share/elasticsearch/data
graylog:
image: graylog2/server:2.3.1-1
environment:
# Every configuration option can be set via environment variables. Simply prefix the parameter name with GRAYLOG_ and put it all in upper case.
#
# Change to your value
GRAYLOG_PASSWORD_SECRET: 'saltandpeppersecret'
# admin:admin by default, generate your password > echo -n yourpassword | shasum -a 256
GRAYLOG_ROOT_PASSWORD_SHA2: '8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918'
# Public external URI on host, change to yours
GRAYLOG_WEB_ENDPOINT_URI: 'http://127.0.0.1:9001/api'
GRAYLOG_ROOT_TIMEZONE: 'Europe/Kiev'
GRAYLOG_ELASTICSEARCH_HOSTS: 'http://elasticsearch:9200'
DISABLE_TELEMETRY: '1'
# Define your limits to indexes (30 days here)
GRAYLOG_ROTATION_STRATEGY: 'time'
GRAYLOG_ELASTICSEARCH_MAX_TIME_PER_INDEX: '1d'
GRAYLOG_MAX_NUMBER_OF_INDICES: '30'
# Fine tune memory usage
GRAYLOG_SERVER_JAVA_OPTS: '-Xms512m -Xmx512m -XX:NewRatio=1 -XX:MaxMetaspaceSize=128m -server -XX:+ResizeTLAB -XX:+UseConcMarkSweepGC -XX:+CMSConcurrentMTEnabled -XX:+CMSClassUnloadingEnabled -XX:+UseParNewGC -XX:-OmitStackTraceInFastThrow'
# Set according to your E-mail settings
# GRAYLOG_TRANSPORT_EMAIL_ENABLED: 'false'
# GRAYLOG_TRANSPORT_EMAIL_HOSTNAME: 'mail.host.com'
# GRAYLOG_TRANSPORT_EMAIL_PORT: '587'
# GRAYLOG_TRANSPORT_EMAIL_USE_AUTH: 'true'
# GRAYLOG_TRANSPORT_EMAIL_USE_TLS: 'true'
# GRAYLOG_TRANSPORT_EMAIL_USE_SSL: 'true'
# GRAYLOG_TRANSPORT_EMAIL_AUTH_USERNAME: '[email protected]'
# GRAYLOG_TRANSPORT_EMAIL_AUTH_PASSWORD: '123'
# GRAYLOG_TRANSPORT_EMAIL_SUBJECT_PREFIX: '[graylog]'
# GRAYLOG_TRANSPORT_EMAIL_FROM_EMAIL: '[email protected]'
# GRAYLOG_TRANSPORT_EMAIL_WEB_INTERFACE_URL: 'http://graylog/'
# Configure SSL for web interface
# GRAYLOG_WEB_TLS_CERT_FILE: /usr/share/graylog/data/config/server.crt
# GRAYLOG_WEB_TLS_KEY_FILE: /usr/share/graylog/data/config/server.key
volumes:
- ./journal:/usr/share/graylog/data/journal
- ./config:/usr/share/graylog/data/config
links:
- mongo:mongo
- elasticsearch:elasticsearch
ports:
- "9001:9000"
- "12201:12201/udp"
depends_on:
- curl.graylog.conf
- curl.log4j2.xml
# Downloads graylog.conf which does not exists by default
curl.graylog.conf:
image: appropriate/curl
command: "curl -s -o /config/graylog.conf https://raw.githubusercontent.com/Graylog2/graylog2-images/2.3/docker/config/graylog.conf"
volumes:
- ./config:/config
# Downloads log4j2.xml which does not exists by default
curl.log4j2.xml:
image: appropriate/curl
command: "curl -s -o /config/log4j2.xml https://raw.githubusercontent.com/Graylog2/graylog2-images/2.3/docker/config/log4j2.xml"
volumes:
- ./config:/config