mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
87137252de
* Use YAML anchors to avoid repeating config blocks * Use docker volumes to persist data for mysql * Allow setting `FLEET_SERVER` (fixes #2127) when using the docker-compose file to spin up multiple osquery clients
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
---
|
|
version: '2'
|
|
services:
|
|
mysql:
|
|
image: mysql:5.7
|
|
volumes:
|
|
- mysql-persistent-volume:/tmp
|
|
command: mysqld --datadir=/tmp/mysqldata --slow_query_log=1 --log_output=TABLE --log-queries-not-using-indexes --event-scheduler=ON
|
|
environment: &mysql-default-environment
|
|
MYSQL_ROOT_PASSWORD: toor
|
|
MYSQL_DATABASE: kolide
|
|
MYSQL_USER: kolide
|
|
MYSQL_PASSWORD: kolide
|
|
ports:
|
|
- "3306:3306"
|
|
|
|
mysql_test:
|
|
image: mysql:5.7
|
|
command: mysqld --datadir=/tmpfs --slow_query_log=1 --log_output=TABLE --log-queries-not-using-indexes --event-scheduler=ON
|
|
tmpfs: /tmpfs
|
|
environment: *mysql-default-environment
|
|
ports:
|
|
- "3307:3306"
|
|
|
|
mailhog:
|
|
image: mailhog/mailhog:latest
|
|
ports:
|
|
- "8025:8025"
|
|
- "1025:1025"
|
|
|
|
redis:
|
|
image: redis:3.2.4
|
|
ports:
|
|
- "6379:6379"
|
|
|
|
# CAdvisor container allows monitoring other containers. Useful for
|
|
# development.
|
|
cadvisor:
|
|
image: google/cadvisor:latest
|
|
ports:
|
|
- "5678:8080"
|
|
volumes:
|
|
- /:/rootfs:ro
|
|
- /var/run:/var/run:rw
|
|
- /sys:/sys:ro
|
|
- /var/lib/docker/:/var/lib/docker:ro
|
|
|
|
volumes:
|
|
mysql-persistent-volume:
|