Files
dbis_core-lite/docker-compose.test.yml

25 lines
556 B
YAML
Raw Permalink Normal View History

version: '3.8'
services:
postgres-test:
image: postgres:15-alpine
container_name: dbis_core_test_db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "5434:5432" # Use different port to avoid conflicts
volumes:
- postgres-test-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
command: postgres -c log_statement=all
volumes:
postgres-test-data: