-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 936 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (33 loc) · 936 Bytes
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
# Docker Compose configuration for running backfill tests
#
# Usage:
# just db-up # Start PostgreSQL
# just db-down # Stop PostgreSQL
# just test-docker # Run tests against Docker PostgreSQL
services:
postgres:
image: postgres:16-alpine
container_name: backfill-test-db
environment:
POSTGRES_USER: backfill
POSTGRES_PASSWORD: backfill
POSTGRES_DB: backfill_test
ports:
- "5433:5432" # Use 5433 to avoid conflicts with local PostgreSQL
volumes:
- backfill-test-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U backfill -d backfill_test"]
interval: 2s
timeout: 5s
retries: 10
# Performance tuning for tests
command: >
postgres
-c shared_buffers=128MB
-c max_connections=100
-c synchronous_commit=off
-c fsync=off
-c full_page_writes=off
volumes:
backfill-test-data: