factoriotools / factorio-docker

Factorio headless server in a Docker container
https://hub.docker.com/r/factoriotools/factorio/
MIT License
909 stars 220 forks source link

Run multiple servers with different sets of mods #428

Closed Disorrder closed 2 years ago

Disorrder commented 2 years ago

Is it possible to run multiple servers in one volume with different sets of mods? Of course, I can create multiple volumes like /opt/factorio-1, /opt/factorio-2, etc. and duplicate common mods. But is it possible to use only one volume? I tried to use symlinks, but it's not going to work.

Well, if mods are equal, I can specify save name using env SAVE_NAME=save1.zip. But it run server with all mods in folder. Okay, I can setup multiple of mod-list.json and write there all mods i'd like to use for specific server, but it seems I can't run server with specific mod-list.json file. Or not?

Or the only way is multiple volumes with duplicating mods?

SuperSandro2000 commented 2 years ago

If you want to run multiple server you need to start multiple containers and duplicate their mods. This is not something that is going to change in the future.

That symlinks are not working is a limitation of how volumes work in docker.