services: postgres: tmpfs: /var/lib/postgresql/data ports: [] volumes: [] redis: ports: [] test: build: context: . dockerfile: Dockerfile.test command: > sh -c "alembic upgrade head && pytest tests/ -x -v --tb=short --timeout=30" environment: DB_URL: "postgresql+asyncpg://proxypool:proxypool@postgres:5432/proxypool" REDIS_URL: "redis://redis:6379/1" SECRET_KEY: "test-secret-key" LOG_LEVEL: "WARNING" depends_on: postgres: condition: service_healthy redis: condition: service_healthy