version: '3.8' services: postgres_test: image: postgres:15 environment: POSTGRES_USER: test POSTGRES_PASSWORD: test POSTGRES_DB: test ports: - "5433:5432" volumes: - test_postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U test"] interval: 10s timeout: 5s retries: 5 readur_test: build: context: . dockerfile: Dockerfile.test environment: DATABASE_URL: postgresql://test:test@postgres_test:5432/test JWT_SECRET: test-secret-key-for-integration-tests UPLOAD_PATH: /app/test-uploads WATCH_FOLDER: /app/test-watch SERVER_ADDRESS: 0.0.0.0:8080 OCR_LANGUAGE: eng CONCURRENT_OCR_JOBS: 2 OCR_TIMEOUT_SECONDS: 60 MAX_FILE_SIZE_MB: 10 MEMORY_LIMIT_MB: 256 CPU_PRIORITY: normal ports: - "8081:8080" depends_on: postgres_test: condition: service_healthy volumes: - ./test-uploads:/app/test-uploads - ./test-watch:/app/test-watch - ./test_data:/app/test_data command: ["./readur"] volumes: test_postgres_data: