mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
- Add --dev flag that will set default flag values. This simplifies the invocation of Fleet in a development environment. - Change defaults in docker-compose to use `fleet` in place of `kolide`. - Skip prompt in `prepare db` when `--dev` specified. - Update developer documentation. Updates to MySQL configuration in docker-compose.yml may require existing development containers and volumes to be deleted (this will delete data in MySQL): ```shell docker-compose rm -sf docker volume rm fleet_mysql-persistent-volume ``` Closes #170
56 lines
1.3 KiB
YAML
56 lines
1.3 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: fleet
|
|
MYSQL_USER: fleet
|
|
MYSQL_PASSWORD: insecure
|
|
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
|
|
|
|
prometheus:
|
|
image: prom/prometheus:latest
|
|
ports:
|
|
- "9090:9090"
|
|
volumes:
|
|
- ./tools/app/prometheus.yml:/etc/prometheus/prometheus.yml
|
|
|
|
volumes:
|
|
mysql-persistent-volume:
|