1) The loading system at outpost

Here you can see im reserving half slots for the empty barrel and the rest for the filled barrel. Intelligent inserter make sure that only the right barrel is moved.

2) The unloading system at base

In close look you can see im using the requester chest to request 100 empty barrels. The problem is that empty barrels can block the system, if the chest is full. So i have a yellow inserter on my assembler with an active provider chest, to counter the overflow. Im sure logistic system would be better, but i was to lazy.

3) The system can support 2-3 trains. For more a buffer is needed. Like this:
