This paper proposes a three-step joint rate optimization method for intelligent reflecting surface (IRS)-assisted coal mine wireless communication systems. Different from terrestrial IRS-assisted communication scenarios, in coal mines, IRSs can be installed flexibly on the tops of rectangular tunnels to address the issues of signals being blocked and interfered with by mining equipment. Therefore, it is necessary to optimize the IRS deployment position, the transmit power and IRS phase shifts to achieve the maximum effective achievable rate at user stations equipped with the proposed system. However, due to the complex channel models of coal mines, the optimization problem of IRS deployment position is non-convex. To solve this problem, two auxiliary variables along with logarithmic operations and Taylor approximation are introduced. On this basis, a three-step joint rate optimization involving the transmit power, IRS phase shifts and IRS deployment position is proposed to maximize the effective achievable rates at the user station. The simulation results show that compared with other rate optimization schemes, the effective achievable rates at the user station using the proposed joint rate optimization scheme can be improved by approximately 12.32% to 54.17% for different parameter configurations. It is also pointed out that the deployment position of the IRS can converge to the same optimal position independent of the initial deployment position. Moreover, we investigate the effects of the roughness of the tunnel walls in a coal mine on the effective achievable rates at the user station, and the simulation results indicate that the proposed three-step joint rate optimization scheme performs better in the coal mine scenario regardless of the roughness.