Repository navigation
Expand file tree
/
Copy pathcompose.yaml
More file actions
54 lines (53 loc) · 1.54 KB
/
Copy pathcompose.yaml
File metadata and controls
54 lines (53 loc) · 1.54 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: scriptella-benchmarks
services:
postgres:
image: postgres:17.11-alpine3.24
command: [postgres, -c, timezone=UTC]
environment:
POSTGRES_DB: benchmark
POSTGRES_USER: benchmark
POSTGRES_PASSWORD: benchmark
TZ: UTC
healthcheck:
test: [CMD-SHELL, 'pg_isready -U benchmark -d benchmark']
interval: 2s
timeout: 5s
retries: 60
mariadb:
image: mariadb:11.8.8
command: ['--default-time-zone=+00:00']
environment:
MARIADB_DATABASE: benchmark
MARIADB_USER: benchmark
MARIADB_PASSWORD: benchmark
MARIADB_ROOT_PASSWORD: benchmark_root
TZ: UTC
healthcheck:
test: [CMD, healthcheck.sh, --connect, --innodb_initialized]
interval: 2s
timeout: 5s
retries: 60
start_period: 5s
benchmark:
build:
context: .
args:
SCRIPTELLA_VERSION: ${SCRIPTELLA_VERSION:-1.6}
BENCHMARK_REVISION: ${BENCHMARK_REVISION:-n/a}
depends_on:
postgres:
condition: service_healthy
mariadb:
condition: service_healthy
environment:
ENVIRONMENT_ID: ${ENVIRONMENT_ID:-local-unspecified}
ENVIRONMENT_DESCRIPTION: ${ENVIRONMENT_DESCRIPTION:-Unspecified local Docker environment}
POSTGRES_URL: jdbc:postgresql://postgres:5432/benchmark
POSTGRES_REWRITE_BATCHED_INSERTS: 'true'
MARIADB_URL: jdbc:mariadb://mariadb:3306/benchmark
DB_USER: benchmark
DB_PASSWORD: benchmark
TZ: UTC
volumes:
- ./results:/results
command: ['${BENCHMARK_COMMAND:-run}']