-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 1.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (35 loc) · 1.01 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
name: sq-bench
services:
mysql:
image: mysql:8.0
container_name: sq-bench-mysql
environment:
MYSQL_ROOT_PASSWORD: bench
MYSQL_DATABASE: bench
command: --performance-schema=ON --max-connections=500
cpus: "${BENCH_DB_CPUS:-1.0}"
mem_limit: "${BENCH_DB_MEMORY:-1g}"
ports:
- "127.0.0.1:${BENCH_MYSQL_PORT:-13306}:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-pbench"]
interval: 2s
timeout: 2s
retries: 60
postgres:
image: postgres:16
container_name: sq-bench-postgres
environment:
POSTGRES_USER: bench
POSTGRES_PASSWORD: bench
POSTGRES_DB: bench
command: postgres -c shared_preload_libraries=pg_stat_statements -c max_connections=500
cpus: "${BENCH_DB_CPUS:-1.0}"
mem_limit: "${BENCH_DB_MEMORY:-1g}"
ports:
- "127.0.0.1:${BENCH_POSTGRES_PORT:-15432}:5432"
healthcheck:
test: ["CMD", "pg_isready", "-U", "bench"]
interval: 2s
timeout: 2s
retries: 60