mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
07e7d336dd
With this change, MySQL will log "slow" queries to the `mysql.slow_log` table.
38 lines
845 B
YAML
38 lines
845 B
YAML
version: '2'
|
|
services:
|
|
mysql:
|
|
image: mysql:5.7
|
|
volumes:
|
|
- .:/tmp
|
|
command: mysqld --datadir=/tmp/mysqldata --slow_query_log=1 --log_output=TABLE --log-queries-not-using-indexes
|
|
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
|
|
tmpfs: /tmpfs
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: toor
|
|
MYSQL_DATABASE: kolide
|
|
MYSQL_USER: kolide
|
|
MYSQL_PASSWORD: kolide
|
|
ports:
|
|
- "3307:3306"
|
|
|
|
mailhog:
|
|
image: mailhog/mailhog:latest
|
|
ports:
|
|
- "8025:8025"
|
|
- "1025:1025"
|
|
|
|
redis:
|
|
image: redis:3.2.4
|
|
ports:
|
|
- "6379:6379"
|