This repository has been archived by the owner on Mar 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (66 loc) · 1.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
version: '3.7'
services:
osquery:
image: "dactiv/osquery:4.1.2-ubuntu18.04"
command:
- osqueryd
- --flagfile=/etc/osquery/osquery.flags
- --tls_hostname=${fleet-host.docker.internal:8412}
volumes:
- ./files/osquery.flags:/etc/osquery/osquery.flags
- ./files/fleet.crt:/etc/osquery/fleet.crt
environment:
- ENROLL_SECRET
fleet:
image: kolide/fleet:latest
command:
- sh
- -c
- "/usr/bin/fleet prepare db --no-prompt && /usr/bin/fleet serve"
depends_on:
- mysql
- redis
volumes:
- ./data/fleet_logs:/logs
- ./files/fleet.crt:/fleet/osquery/fleet.crt
- ./files/fleet.key:/fleet/osquery/fleet.key
ports:
- "8412:8412"
environment:
ENROLL_SECRET: enroll
KOLIDE_MYSQL_ADDRESS: mysql:3306
KOLIDE_MYSQL_DATABASE: fleet
KOLIDE_MYSQL_USERNAME: fleet
KOLIDE_MYSQL_PASSWORD: fleet
KOLIDE_REDIS_ADDRESS: redis:6379
KOLIDE_SERVER_ADDRESS: 0.0.0.0:8412
KOLIDE_AUTH_JWT_KEY: ee7a11YpwcSQSwkazFdxq10AIvr2EzXE
KOLIDE_SERVER_CERT: /fleet/osquery/fleet.crt
KOLIDE_SERVER_KEY: /fleet/osquery/fleet.key
KOLIDE_LOGGING_JSON: 'true'
KOLIDE_OSQUERY_STATUS_LOG_PLUGIN: filesystem
KOLIDE_FILESYSTEM_STATUS_LOG_FILE: /logs/osqueryd.status.log
KOLIDE_OSQUERY_RESULT_LOG_PLUGIN: filesystem
KOLIDE_FILESYSTEM_RESULT_LOG_FILE: /logs/osqueryd.results.log
redis:
image: redis:3.2.4
ports:
- "6379:6379"
mysql:
image: mysql:5.7
volumes:
- .:/data
command:
- mysqld
- --datadir=/tmp/data
- --slow_query_log=1
- --log_output=TABLE
- --log-queries-not-using-indexes
- --event-scheduler=ON
environment:
MYSQL_ROOT_PASSWORD: toor
MYSQL_DATABASE: fleet
MYSQL_USER: fleet
MYSQL_PASSWORD: fleet
ports:
- "3306:3306"