# docker-compose.test.yml # Test database for pytest - uses tmpfs for speed services: test_db: image: postgres:15 restart: "no" environment: POSTGRES_DB: orion_test POSTGRES_USER: test_user POSTGRES_PASSWORD: test_password ports: - "5433:5432" # Different port to avoid conflict with dev db tmpfs: - /var/lib/postgresql/data # Use RAM for faster tests healthcheck: test: ["CMD-SHELL", "pg_isready -U test_user -d orion_test"] interval: 5s timeout: 5s retries: 5