-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
48 lines (45 loc) · 1.22 KB
/
docker-compose.test.yml
File metadata and controls
48 lines (45 loc) · 1.22 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
## Storage backend test infrastructure
##
## Usage:
## docker compose -f docker-compose.test.yml up -d
## cargo test -p jacs-postgresql # PostgreSQL (extracted crate)
## cargo test -p jacs --features rusqlite-storage # rusqlite tests
## docker compose -f docker-compose.test.yml down
services:
postgres:
image: postgres:16
environment:
POSTGRES_USER: jacs
POSTGRES_PASSWORD: jacs_test
POSTGRES_DB: jacs_test
ports:
- "5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U jacs"]
interval: 5s
timeout: 3s
retries: 10
minio:
image: minio/minio:latest
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- "9000:9000"
- "9001:9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 3s
retries: 10
minio-init:
image: minio/mc:latest
depends_on:
minio:
condition: service_healthy
entrypoint: >
/bin/sh -c "
mc alias set local http://minio:9000 minioadmin minioadmin &&
mc mb --ignore-existing local/jacs-test
"