Compressor, pressure reservoir and valve unit