Skip to content

Commit 480e074

Browse files
committed
initial commit of repo
0 parents  commit 480e074

File tree

8 files changed

+1432
-0
lines changed

8 files changed

+1432
-0
lines changed

.docker-compose.yaml.swp

12 KB
Binary file not shown.

.env-example

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# You MUST set a secret to secure/pepper the stored user passwords here. Use at least 64 characters.
2+
# Generate one by using for example: pwgen -N 1 -s 96
3+
# ATTENTION: This value must be the same on all Graylog nodes in the cluster.
4+
# Changing this value after installation will render all user sessions and encrypted values in the database invalid. (e.g. encrypted access tokens)
5+
GRAYLOG_PASSWORD_SECRET=""
6+
7+
# You MUST specify a hash password for the root user (which you only need to initially set up the
8+
# system and in case you lose connectivity to your authentication backend)
9+
# This password cannot be changed using the API or via the web interface. If you need to change it,
10+
# modify it in this file.
11+
# Create one by using for example: echo -n yourpassword | shasum -a 256
12+
# and put the resulting hash value into the following line
13+
# CHANGE THIS!
14+
GRAYLOG_ROOT_PASSWORD_SHA2=""

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.env

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
This contains logic needed for running a logging system on my local
2+
network.
3+
4+
Steps for making sure this works:
5+
- Open up the needed ports. Make sure they only accept connections from the local network.
6+
- run `docker-compose up -d

docker-compose.yaml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
version: "3.8"
2+
3+
services:
4+
mongodb:
5+
image: "mongo:5.0"
6+
volumes:
7+
- "mongodb_data:/data/db"
8+
restart: "on-failure"
9+
10+
elasticsearch:
11+
environment:
12+
ES_JAVA_OPTS: "-Xms1g -Xmx1g -Dlog4j2.formatMsgNoLookups=true"
13+
bootstrap.memory_lock: "true"
14+
discovery.type: "single-node"
15+
http.host: "0.0.0.0"
16+
action.auto_create_index: "false"
17+
image: "docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2"
18+
ulimits:
19+
memlock:
20+
hard: -1
21+
soft: -1
22+
volumes:
23+
- "es_data:/usr/share/elasticsearch/data"
24+
restart: "on-failure"
25+
26+
graylog:
27+
image: "graylog/graylog:4.2"
28+
depends_on:
29+
elasticsearch:
30+
condition: "service_started"
31+
mongodb:
32+
condition: "service_started"
33+
entrypoint: "/usr/bin/tini -- wait-for-it elasticsearch:9200 -- /docker-entrypoint.sh"
34+
environment:
35+
GRAYLOG_NODE_ID_FILE: "/usr/share/graylog/data/config/node-id"
36+
GRAYLOG_PASSWORD_SECRET: ${GRAYLOG_PASSWORD_SECRET:?Please configure GRAYLOG_PASSWORD_SECRET in the .env file}
37+
GRAYLOG_ROOT_PASSWORD_SHA2: ${GRAYLOG_ROOT_PASSWORD_SHA2:?Please configure GRAYLOG_ROOT_PASSWORD_SHA2 in the .env file}
38+
GRAYLOG_HTTP_BIND_ADDRESS: "0.0.0.0:9000"
39+
GRAYLOG_HTTP_EXTERNAL_URI: "http://localhost:9000/"
40+
GRAYLOG_ELASTICSEARCH_HOSTS: "http://elasticsearch:9200"
41+
GRAYLOG_MONGODB_URI: "mongodb://mongodb:27017/graylog"
42+
ports:
43+
- "5044:5044/tcp" # Beats
44+
- "5140:5140/udp" # Syslog
45+
- "5140:5140/tcp" # Syslog
46+
- "5555:5555/tcp" # RAW TCP
47+
- "5555:5555/udp" # RAW TCP
48+
- "9000:9000/tcp" # Server API
49+
- "12201:12201/tcp" # GELF TCP
50+
- "12201:12201/udp" # GELF UDP
51+
#- "10000:10000/tcp" # Custom TCP port
52+
#- "10000:10000/udp" # Custom UDP port
53+
- "13301:13301/tcp" # Forwarder data
54+
- "13302:13302/tcp" # Forwarder config
55+
volumes:
56+
- "graylog_data:/usr/share/graylog/data/data"
57+
- "graylog_journal:/usr/share/graylog/data/journal"
58+
restart: "on-failure"
59+
60+
cerebro:
61+
image: "lmenezes/cerebro"
62+
environment:
63+
CEREBRO_PORT: 9001
64+
ports:
65+
- "9001:9001" # cerebro interface
66+
67+
grafana:
68+
image: "grafana/grafana-oss"
69+
volumes:
70+
- "grafana_storage:/var/lib/grafana"
71+
ports:
72+
- "9002:3000"
73+
74+
volumes:
75+
mongodb_data:
76+
es_data:
77+
graylog_data:
78+
graylog_journal:
79+
grafana_storage:

0 commit comments

Comments
 (0)