forked from lblod/app-http-logger
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
94 lines (92 loc) · 2.88 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
85
86
87
88
89
90
91
92
93
94
version: '3.6'
x-logging:
&default-logging
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
services:
monitor:
image: redpencil/docker-monitor:1.4.0
privileged: true
userns_mode: "host"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
MONITOR_SYNC_INTERVAL: 10000
logging: *default-logging
monitor-cleanup:
image: redpencil/cleanup-removed-containers:0.1.0
environment:
AUTO_DELETE_CONTAINERS: "on"
capture:
image: redpencil/docker-network-capture-service:1.8.4
privileged: true
userns_mode: "host"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
CAPTURE_CONTAINER_FILTER: '?uri docker:label/docker:key "logging".'
CAPTURE_SYNC_INTERVAL: 60000
MONITOR_IMAGE: "redpencil/http-logger-packetbeat:1.7.0"
LOGSTASH_NETWORK: "logstash-network"
# Default configuration values for packetbeat
PACKETBEAT_MAX_MESSAGE_SIZE: 102400 # Maximum total message size in bytes
PACKETBEAT_LISTEN_PORTS: "[80, 81, 88, 8080, 8081, 9200, 8890, 1111, 4200]" # YAML array of ports
depends_on: # Ensures this service is stopped before the db stops, because we need the db to clean up.
- database
logging: *default-logging
stats:
image: redpencil/docker-stats-service:0.0.3
privileged: true
userns_mode: "host"
links:
- stats-logstash:logstash
- database:database
volumes:
- /var/run/docker.sock:/var/run/docker.sock
logging: *default-logging
logstash:
image: redpencil/http-logger-logstash:0.2.0
user: "root"
networks:
- default
- logstash-network
volumes:
- "./config/logstash-http/http-file-pipeline.conf:/usr/share/logstash/pipeline/logstash.conf:ro"
logging: *default-logging
stats-logstash:
image: redpencil/http-logger-logstash-service:0.1.0
user: "root"
volumes:
- "./config/logstash-stats/stats-file-pipeline.conf:/usr/share/logstash/pipeline/logstash.conf:ro"
networks:
- default
- logstash-network
logging: *default-logging
triplestore:
image: redpencil/virtuoso:1.2.0-rc.1
environment:
SPARQL_UPDATE: "true"
DEFAULT_GRAPH: "http://mu.semte.ch/application"
volumes:
- ./config/db/virtuoso.ini:/data/virtuoso.ini:rw
- ./data/db:/data:rw
logging: *default-logging
database:
image: semtech/sparql-parser:0.0.10
volumes:
- ./config/cl-authorization:/config
- ./data/cl-authorization:/data
environment:
MU_SPARQL_ENDPOINT: "http://triplestore:8890/sparql"
DATABASE_COMPATIBILITY: "Virtuoso"
logging: *default-logging
delta:
image: semtech/mu-delta-notifier:0.3.1
volumes:
- ./config/delta:/config:ro
networks:
logstash-network:
name: "logstash-network" # Explicitly set the name to prevent scoping w/ the compose project name
driver: "bridge"