How about putting a plastic bucket or some large container in the anchor locker to catch the chain when it coils then it wouldnt fall over,if you have the space.
Thanks for all the advice. I think that the balance of advice and comment points towards the pipe facing aft, so that it can run around the Sampson post. I will try that, and look again at how this might all work with a windlass. I am quite keen on the idea of dropping the chain into a locker under the forward bunks -more research required. Once again, many thanks to all.
Just one further point. Most windlass manufacturers recommend that the chain is made fast not to the windlass, but to some strong point such as a cleat or sampson post. Few modern boats have sampson posts, so they end up with the chain wrapped round one of the mooring cleats, not an ideal situation. If you have a sampson post, plan to keep it and be thankful; it makes a good towing point, if nothing else.