With only one switch you can detect one of three things:
1. Door is fully closed - Switch is placed where the top of the door closes against the frame.
2. Door is fully open - Switch is positioned at the end of the track where the top of the door stops when fully open.
3. Door is in motion. - Switch is positioned in the middle of the track and a bump on the door activates it as it moves by in either direction.
Which do you have now?
Moving on, you have:
1. A 12 Vdc power supply. What is it's output current rating?
2. A 12 V light. What is its power rating / current draw?
3. A noise maker. How much current does it draw?
My read of your post is that you want the light and sound to activate for a short time when opening and a shorter time when closing. If this is correct, you will need at least one more switch so the system can determine direction. Yes, you could just have the system toggle between short and long with each activation of only one switch, but this is not as reliable. Things are bound to get out of sync sometime.
With one switch at the open position and one at the closed position, two 555 circuits will do what you want. But where's the fun in that? With two switches placed close together in the middle of the track, only one 555 circuit is needed; it would operate like this:
Switch A triggers the 555 every time it is hit by the door going in either direction. The 555 is set for the long alarm time.
Switch B resets the 555. In one direction it resets the 555 before it is triggered, and has no effect on the 555 output period. In the other direction, it resets the 555 shortly after it is triggered, terminating the output pulse early. This is the short alarm that indicates closing. The distance between the two switches sets the short alarm time.
One simple 555 monostable circuit gets you two alarm times without a bunch of direction logic. Depending on the operating currents of the light and sounder, the 555 might be able to drive them directly. If not, then a small power transistor or relay is needed.
ak