Runs a minimal Factorio server in Docker. There are a few other similar projects on GitHub but none fit my requirements.
- Built on Distroless containers for portability
- Uses a non-root user for security
- Only runs
factorio
in the container - Simple
Dockerfile
anddocker-compose.yml
files - One step deployment that creates a valid server on localhost
- Stores Factorio data and configs in a Docker volume
You should replace the map-gen-settings.json
, map-settings.json
, and
server-settings.json
in the settings directory with your own,
otherwise a default railworld server will be created on LAN.
Building the container and deploying the service is simple.
docker build . --tag factorio-docker
docker compose up