-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
39 lines (37 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Local dev MySQL. Ports 3316/3317 avoid conflicts with other local MySQL instances.
# Server and ingest CLI defaults match these ports.
services:
mysql:
image: mysql:8.4
container_name: fleet-edr-mysql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: edr
ports:
- "127.0.0.1:3316:3306"
volumes:
- edr-mysql-data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 5s
timeout: 5s
retries: 10
mysql_test:
image: mysql:8.4
container_name: fleet-edr-mysql_test
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: edr_test
# Raise max_connections above the 151 default. The parallel integration suite (issue
# #172) peaks at 200+ concurrent connections; the matching CI step in test.yml does the
# same via `SET GLOBAL` since the GHA service container has no volume mount.
command: ["--max-connections=500"]
ports:
- "127.0.0.1:3317:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 5s
timeout: 5s
retries: 10
volumes:
edr-mysql-data: