mirror of
https://github.com/luzifer-docker/factorio.git
synced 2024-12-20 17:51:22 +00:00
No description
|
||
---|---|---|
Dockerfile | ||
LICENSE | ||
map-gen-settings.json | ||
README.md | ||
server-settings.json | ||
start.sh |
Luzifer / factorio
This repository contains a Docker setup for a headless Factorio server.
Usage
You need to have a directory to mount into your container which will afterwards contain your map, saves and also the configuration. In this example I will use /data/factorio
as storage directory.
- At first you maybe want to initialize the configuration files:
docker run --rm -v /data/factorio:/data quay.io/luzifer/factorio init
- Afterwards you can edit the two settings files create in
/data/factorio
and adjust your settings. - If you are okay with your
map-gen-settings.json
you can generate a map file:
docker run --rm -v /data/factorio:/data quay.io/luzifer/factorio create
- After the map has been generated (and for every future start) you can start the server:
docker run --rm -v /data/factorio:/data -e 34197:34197 quay.io/luzifer/factorio start
The server will expose the port 34197/udp
for the game. The above command already exposes that port to the host machine.