26 lines
595 B
YAML
26 lines
595 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
test-db:
|
|
image: postgres:15-alpine
|
|
container_name: backup-service-test-db
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: testpassword
|
|
POSTGRES_DB: rwa_backup_test
|
|
ports:
|
|
- "5434:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
tmpfs:
|
|
- /var/lib/postgresql/data
|
|
command: >
|
|
postgres
|
|
-c fsync=off
|
|
-c synchronous_commit=off
|
|
-c full_page_writes=off
|
|
-c random_page_cost=1.0
|