A compactor device for containers that comprises a fixed part and a removable drawer of the fixed part, wherein the fixed part comprises a structure that houses a mechanical compression system that comprises a mobile plate, and wherein the drawer comprises a front plate, a back plate, a support plate, a tilting plate, and a fixed plate facing the mobile plate, wherein the fixed plate of the drawer is configured to receive a container, and the mobile plate of the mechanical compression system is configured to move towards the fixed plate of the drawer where: - the tilting plate comprises an "L" shape with two limbs, such that a first limb of the tilting plate fixes the tilting plate to a first spring, and the first spring is also fixed to the support plate; and a second limb of the tilting plate forms a "V" shape with the fixed plate, where this "V" configures the outlet of the device; - it comprises an opening mechanism of the tilting plate configured to keep the tilting plate still while the mobile plate moves towards the fixed plate and is configured to make said tilting plate tilt when the mobile plate moves away from the fixed plate; - the fixed plate is arranged in an inclined position, - the fixed part comprises an outer case configured to protect the device; characterized in that the opening mechanism of the tilting plate prevents access to the inside of the device from the outlet of the device during container compaction, and that the opening mechanism of the tilting plate comprises: - a first piece in an "L" shape fixed to a first fixed point on the joint of the limbs of the "L", configured to rotate around said first fixed point, and joining by means of a second spring, to a fixed point of the structure, and - a second piece in a "T" shape that is fixed to a second fixed point on the joint of the flanges and web of the "T", configured to rotate around said second fixed point, and joining by means of a third spring to a fixed point of the structure, wherein the first piece comes in contact with the second piece, where one end of the "L" of the first piece is on top of one end of a flange of the "T" of the second piece, and wherein the first piece is configured to receive a push from the mobile plate on the limb opposite to the one in contact with the second piece by means of a first lug of said mobile plate, such that the first piece, rotated in a first direction, presses on the second piece, which, in turn, rotates and presses on the tilting plate and, when rotated in the opposite direction of the first direction, avoids contact with the second piece, and wherein both the first piece as well as the second piece return to their initial position thanks to the springs (34, 36). - the tilting plate comprises an "L" shape with two limbs, such that a first limb of the tilting plate fixes the tilting plate to a first spring, and the first spring is also fixed to the support plate; and a second limb of the tilting plate forms a "V" shape with the fixed plate, where this "V" configures the outlet of the device; - it comprises an opening mechanism of the tilting plate configured to keep the tilting plate still while the mobile plate moves towards the fixed plate and is configured to make said tilting plate tilt when the mobile plate moves away from the fixed plate; - the fixed plate is arranged in an inclined position, - the fixed part comprises an outer case configured to protect the device; characterized in that the opening mechanism of the tilting plate prevents access to the inside of the device from the outlet of the device during container compaction, and that the opening mechanism of the tilting plate comprises: - a first piece in an "L" shape fixed to a first fixed point on the joint of the limbs of the "L", configured to rotate around said first fixed point, and joining by means of a second spring, to a fixed point of the structure, and - a second piece in a "T" shape that is fixed to a second fixed point on the joint of the flanges and web of the "T", configured to rotate around said second fixed point, and joining by means of a third spring to a fixed point of the structure, wherein the first piece comes in contact with the second piece, where one end of the "L" of the first piece is on top of one end of a flange of the "T" of the second piece, and wherein the first piece is configured to receive a push from the mobile plate on the limb opposite to the one in contact with the second piece by means of a first lug of said mobile plate, such that the first piece, rotated in a first direction, presses on the second piece, which, in turn, rotates and presses on the tilting plate and, when rotated in the opposite direction of the first direction, avoids contact with the second piece, and wherein both the first piece as well as the second piece return to their initial position thanks to the springs (34, 36). - a first piece in an "L" shape fixed to a first fixed point on the joint of the limbs of the "L", configured to rotate around said first fixed point, and joining by means of a second spring, to a fixed point of the structure, and - a second piece in a "T" shape that is fixed to a second fixed point on the joint of the flanges and web of the "T", configured to rotate around said second fixed point, and joining by means of a third spring to a fixed point of the structure,