danhale-git / craft

Deploy and manage mc bedrock servers
Apache License 2.0
0 stars 0 forks source link

Revisit volumes and backups #52

Open danhale-git opened 3 years ago

danhale-git commented 3 years ago

Originally craft never kept containers alive on stop. All persistence was via the backup feature being used to 'save' and 'load' backups automatically on start/stop. Volume support was added alongside this behaviour, as the new default with the non-persistent servers still an option. Consider whether support for servers without volumes is even needed as removing it would simplify things.

The two container types used for servers

One type has a container which is automatically killed when stopped (see server.New() AutoRemove: !mountVolume,). This is the type with no volume. Servers with volumes persist after they are stopped and save world data to the volume.