-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (66 loc) · 1.81 KB
/
docker-compose.yml
File metadata and controls
71 lines (66 loc) · 1.81 KB
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
# this docker-compose make from https://docs.graylog.org/en/4.0/pages/installation/docker.html#quick-start
# Graylog: https://hub.docker.com/r/graylog/graylog/
version: '3.8'
services:
graylog:
image: graylog/graylog:${APP_VERSION}
container_name: ${APP_NAME}
environment:
# CHANGE ME (must be at least 16 characters)!
- GRAYLOG_PASSWORD_SECRET=somepasswordpepper
# echo -n admin | shasum -a 256, default password is admin
- GRAYLOG_ROOT_PASSWORD_SHA2=${APP_ENCRYPT_PASSWORD}
- GRAYLOG_HTTP_BIND_ADDRESS=0.0.0.0:9000
entrypoint: /usr/bin/tini -- wait-for-it elasticsearch:9200 -- /docker-entrypoint.sh
restart: always
depends_on:
- mongo
- elasticsearch
ports:
# Graylog web interface and REST API
- ${APP_HTTP_PORT}:9000
# Syslog TCP
- 1514:1514
# Syslog UDP
- 1514:1514/udp
# GELF TCP
- 12201:12201
# GELF UDP
- 12201:12201/udp
volumes:
- graylog_data:/usr/share/graylog/data/
- graylog_plugin:/usr/share/graylog/plugin
mongo:
image: mongo:${DB_MONGO_VERSION}
container_name: ${APP_NAME}-mongo
restart: always
volumes:
- mongo:/data/db
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:$DB_ES_VERSION
container_name: ${APP_NAME}-elasticsearch
environment:
- http.host=0.0.0.0
- transport.host=localhost
- network.host=0.0.0.0
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
deploy:
resources:
limits:
memory: 1g
restart: always
volumes:
- elasticsearch:/usr/share/elasticsearch/data
volumes:
graylog_data:
graylog_plugin:
elasticsearch:
mongo:
networks:
default:
name: ${APP_NETWORK}
external: true