forked from micahhausler/graylog-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (64 loc) · 1.4 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
# Docker-compose for Graylog
persistdata:
image: alpine
command: /bin/true
volumes:
- "/data"
- "/usr/share/elasticsearch/data"
- "/opt/graylog/data"
mongodb:
image: "mongo:3.0.4"
hostname: mongo
command: "mongod --config /conf/mongo.conf"
volumes_from:
- persistdata
volumes:
- "./mongo:/conf/"
elasticsearch:
image: "elasticsearch:1.7.4"
hostname: elasticsearch
volumes_from:
- persistdata
volumes:
- "./elasticsearch/:/usr/share/elasticsearch/config"
environment:
ES_HEAP_SIZE: 1g
graylog:
build: ./graylog
hostname: graylog
volumes_from:
- persistdata
volumes:
- "./graylog/:/etc/graylog/server/"
- "./plugin/:/opt/graylog/plugin/"
links:
- "elasticsearch:elasticsearch.service"
- "mongodb:mongodb.service"
ports:
- "12900:12900"
graylogweb:
build: ./graylog_web
volumes:
- "./graylog_web/:/opt/graylog/conf/"
links:
- "graylog:graylog.service"
ports:
- "9443:9443"
# Based on Logspout by Gliderlabs
# https://github.com/gliderlabs/logspout
#
# I created a module to send Docker logs
# from logspout to Graylog:
# https://github.com/micahhausler/logspout-gelf
logspout:
image: "micahhausler/logspout:gelf"
hostname: logspout
command: "gelf://graylog:12201"
environment:
LOGSPOUT: ignore
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
links:
- "graylog:graylog"
ports:
- "8000:80"