2020-10-09 17:10:33 +00:00
|
|
|
---
|
2021-10-21 10:46:02 +00:00
|
|
|
version: "2"
|
2016-11-15 18:06:33 +00:00
|
|
|
services:
|
2022-09-23 18:18:34 +00:00
|
|
|
# To test with MariaDB, set FLEET_MYSQL_IMAGE to mariadb:10.6 or the like (note MariaDB is not
|
|
|
|
# officially supported).
|
2022-06-29 17:38:23 +00:00
|
|
|
# To run in macOS M1, set FLEET_MYSQL_IMAGE=arm64v8/mysql:oracle FLEET_MYSQL_PLATFORM=linux/arm64/v8
|
2016-11-15 18:06:33 +00:00
|
|
|
mysql:
|
2022-06-23 14:34:52 +00:00
|
|
|
image: ${FLEET_MYSQL_IMAGE:-mysql:5.7}
|
2022-06-29 17:38:23 +00:00
|
|
|
platform: ${FLEET_MYSQL_PLATFORM:-linux/x86_64}
|
2017-02-17 17:15:10 +00:00
|
|
|
volumes:
|
2020-10-09 17:10:33 +00:00
|
|
|
- mysql-persistent-volume:/tmp
|
2022-06-29 17:38:23 +00:00
|
|
|
command:
|
|
|
|
[
|
2021-10-21 10:46:02 +00:00
|
|
|
"mysqld",
|
|
|
|
"--datadir=/tmp/mysqldata",
|
|
|
|
# These 3 keys run MySQL with GTID consistency enforced to avoid issues with production deployments that use it.
|
|
|
|
"--enforce-gtid-consistency=ON",
|
|
|
|
"--log-bin=bin.log",
|
2022-10-05 22:53:54 +00:00
|
|
|
"--server-id=master-01",
|
|
|
|
# Required for storage of Apple MDM installers.
|
|
|
|
"--max_allowed_packet=536870912"
|
2021-10-21 10:46:02 +00:00
|
|
|
]
|
2022-06-29 17:38:23 +00:00
|
|
|
environment:
|
|
|
|
&mysql-default-environment
|
2017-02-17 17:15:10 +00:00
|
|
|
MYSQL_ROOT_PASSWORD: toor
|
2021-02-02 02:14:16 +00:00
|
|
|
MYSQL_DATABASE: fleet
|
|
|
|
MYSQL_USER: fleet
|
|
|
|
MYSQL_PASSWORD: insecure
|
2017-02-17 17:15:10 +00:00
|
|
|
ports:
|
|
|
|
- "3306:3306"
|
|
|
|
|
|
|
|
mysql_test:
|
2022-06-23 14:34:52 +00:00
|
|
|
image: ${FLEET_MYSQL_IMAGE:-mysql:5.7}
|
2022-06-29 17:38:23 +00:00
|
|
|
platform: ${FLEET_MYSQL_PLATFORM:-linux/x86_64}
|
2021-04-03 18:42:27 +00:00
|
|
|
# innodb-file-per-table=OFF gives ~20% speedup for test runs.
|
2022-06-29 17:38:23 +00:00
|
|
|
command:
|
|
|
|
[
|
2021-10-21 10:46:02 +00:00
|
|
|
"mysqld",
|
|
|
|
"--datadir=/tmpfs",
|
|
|
|
"--slow_query_log=1",
|
|
|
|
"--log_output=TABLE",
|
|
|
|
"--log-queries-not-using-indexes",
|
|
|
|
"--innodb-file-per-table=OFF",
|
|
|
|
# These 3 keys run MySQL with GTID consistency enforced to avoid issues with production deployments that use it.
|
|
|
|
"--enforce-gtid-consistency=ON",
|
|
|
|
"--log-bin=bin.log",
|
2022-10-05 22:53:54 +00:00
|
|
|
"--server-id=master-01",
|
|
|
|
# Required for storage of Apple MDM installers.
|
|
|
|
"--max_allowed_packet=536870912"
|
2021-10-21 10:46:02 +00:00
|
|
|
]
|
2020-10-09 17:10:33 +00:00
|
|
|
environment: *mysql-default-environment
|
2016-11-15 18:06:33 +00:00
|
|
|
ports:
|
2017-02-17 17:15:10 +00:00
|
|
|
- "3307:3306"
|
2021-07-19 21:20:31 +00:00
|
|
|
tmpfs:
|
|
|
|
- /var/lib/mysql:rw,noexec,nosuid
|
|
|
|
- /tmpfs
|
2016-09-21 12:22:53 +00:00
|
|
|
|
2023-03-28 18:23:15 +00:00
|
|
|
# Unauthenticated SMTP server.
|
2016-11-15 18:06:33 +00:00
|
|
|
mailhog:
|
|
|
|
image: mailhog/mailhog:latest
|
|
|
|
ports:
|
|
|
|
- "8025:8025"
|
|
|
|
- "1025:1025"
|
2016-10-31 22:51:19 +00:00
|
|
|
|
2023-03-28 18:23:15 +00:00
|
|
|
# SMTP server with Basic Authentication.
|
|
|
|
mailpit:
|
|
|
|
image: axllent/mailpit:latest
|
|
|
|
ports:
|
|
|
|
- "8026:8025"
|
|
|
|
- "1026:1025"
|
|
|
|
volumes:
|
|
|
|
- ./tools/mailpit/auth.txt:/auth.txt
|
|
|
|
command:
|
|
|
|
[
|
|
|
|
"--smtp-auth-file=/auth.txt",
|
|
|
|
"--smtp-auth-allow-insecure=true"
|
|
|
|
]
|
|
|
|
|
2016-11-15 18:06:33 +00:00
|
|
|
redis:
|
2021-03-08 22:36:10 +00:00
|
|
|
image: redis:5
|
2016-11-15 18:06:33 +00:00
|
|
|
ports:
|
2016-11-21 13:59:48 +00:00
|
|
|
- "6379:6379"
|
2020-07-21 22:36:11 +00:00
|
|
|
|
2021-03-29 20:50:39 +00:00
|
|
|
saml_idp:
|
|
|
|
image: fleetdm/docker-idp:latest
|
2021-06-09 18:56:59 +00:00
|
|
|
volumes:
|
|
|
|
- ./tools/saml/users.php:/var/www/simplesamlphp/config/authsources.php
|
2023-04-27 12:43:20 +00:00
|
|
|
- ./tools/saml/config.php:/var/www/simplesamlphp/metadata/saml20-sp-remote.php
|
2021-03-29 20:50:39 +00:00
|
|
|
ports:
|
|
|
|
- "9080:8080"
|
|
|
|
- "9443:8443"
|
|
|
|
|
2020-07-21 22:36:11 +00:00
|
|
|
# CAdvisor container allows monitoring other containers. Useful for
|
|
|
|
# development.
|
|
|
|
cadvisor:
|
|
|
|
image: google/cadvisor:latest
|
|
|
|
ports:
|
|
|
|
- "5678:8080"
|
|
|
|
volumes:
|
2021-04-24 00:58:23 +00:00
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
2020-07-21 22:36:11 +00:00
|
|
|
- /sys:/sys:ro
|
|
|
|
- /var/lib/docker/:/var/lib/docker:ro
|
2020-10-09 17:10:33 +00:00
|
|
|
|
2020-11-13 03:06:56 +00:00
|
|
|
prometheus:
|
|
|
|
image: prom/prometheus:latest
|
|
|
|
ports:
|
|
|
|
- "9090:9090"
|
|
|
|
volumes:
|
|
|
|
- ./tools/app/prometheus.yml:/etc/prometheus/prometheus.yml
|
|
|
|
|
2021-07-30 15:45:49 +00:00
|
|
|
# localstack to simulate AWS integrations like firehose & kinesis
|
|
|
|
# use http://localhost:4566 as the `--endpoint-url` argument in awscli
|
|
|
|
localstack:
|
|
|
|
image: localstack/localstack
|
|
|
|
ports:
|
|
|
|
- "4566:4566"
|
|
|
|
- "4571:4571"
|
|
|
|
environment:
|
|
|
|
- SERVICES=firehose,kinesis
|
|
|
|
|
2021-10-12 19:32:06 +00:00
|
|
|
# s3 compatible object storage (file carving backend)
|
|
|
|
minio:
|
|
|
|
image: quay.io/minio/minio
|
|
|
|
command: server /data --console-address ":9001"
|
|
|
|
ports:
|
|
|
|
- "9000:9000"
|
|
|
|
- "9001:9001"
|
|
|
|
environment:
|
|
|
|
MINIO_ROOT_USER: minio
|
|
|
|
MINIO_ROOT_PASSWORD: minio123!
|
|
|
|
volumes:
|
|
|
|
- data-minio:/data
|
|
|
|
|
2023-01-03 20:29:40 +00:00
|
|
|
toxiproxy:
|
|
|
|
image: shopify/toxiproxy
|
|
|
|
ports:
|
|
|
|
- "22220:22220"
|
|
|
|
- "8474:8474"
|
|
|
|
|
2020-10-09 17:10:33 +00:00
|
|
|
volumes:
|
|
|
|
mysql-persistent-volume:
|
2021-10-12 19:32:06 +00:00
|
|
|
data-minio:
|
2021-09-01 20:32:57 +00:00
|
|
|
|