If you can communicate with the outside. Or maybe humanity exterminated itself besides the people in the magic trolley before you decided to get blown up.
That's the plot to _Snowpiercer_.
But they are not immortal there are they (never read/saw it)? And it's 'slightly' bigger than a trolley with more humans so you can (and i think they do/have?) a small society.