mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
bundle_identifier should be unique for the common software (should not have hostname name in it).
56 lines
1.7 KiB
YAML
56 lines
1.7 KiB
YAML
---
|
|
version: "2"
|
|
services:
|
|
mysql_main:
|
|
image: ${FLEET_MYSQL_IMAGE:-mysql:5.7}
|
|
platform: ${FLEET_MYSQL_PLATFORM:-linux/x86_64}
|
|
volumes:
|
|
- mysql-persistent-volume-replica-main:/tmp
|
|
command:
|
|
[
|
|
"mysqld",
|
|
"--datadir=/tmp/mysqldata-replica-main",
|
|
# 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",
|
|
"--server-id=1",
|
|
# Required for storage of Apple MDM bootstrap packages.
|
|
"--max_allowed_packet=536870912"
|
|
]
|
|
environment:
|
|
&mysql-default-environment
|
|
MYSQL_ROOT_PASSWORD: toor
|
|
MYSQL_DATABASE: fleet
|
|
MYSQL_USER: fleet
|
|
MYSQL_PASSWORD: insecure
|
|
ports:
|
|
- "3308:3306"
|
|
|
|
mysql_read_replica:
|
|
image: ${FLEET_MYSQL_IMAGE:-mysql:5.7}
|
|
platform: ${FLEET_MYSQL_PLATFORM:-linux/x86_64}
|
|
volumes:
|
|
- mysql-persistent-volume-replica-read:/tmp
|
|
# innodb-file-per-table=OFF gives ~20% speedup for test runs.
|
|
command:
|
|
[
|
|
"mysqld",
|
|
"--datadir=/tmp/mysqldata-replica-read",
|
|
"--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",
|
|
"--server-id=2",
|
|
# Required for storage of Apple MDM bootstrap packages.
|
|
"--max_allowed_packet=536870912"
|
|
]
|
|
environment: *mysql-default-environment
|
|
ports:
|
|
- "3309:3306"
|
|
|
|
volumes:
|
|
mysql-persistent-volume-replica-main:
|
|
mysql-persistent-volume-replica-read:
|