fboulnois / factorio-docker

Runs a minimal Factorio server in Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Factorio Server in Docker

Runs a minimal Factorio server in Docker. There are a few other similar projects on GitHub but none fit my requirements.

Features

  • Built on Distroless containers for portability
  • Uses a non-root user for security
  • Only runs factorio in the container
  • Simple Dockerfile and docker-compose.yml files
  • One step deployment that creates a valid server on localhost
  • Stores Factorio data and configs in a Docker volume

Configuration

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.

Build and Deploy

Building the container and deploying the service is simple.

Build

docker build . --tag factorio-docker
docker swarm init || true  # this only needs to be run once

Deploy

docker stack deploy -c docker-compose.yml factorio-docker

About

Runs a minimal Factorio server in Docker

License:GNU Affero General Public License v3.0


Languages

Language:Dockerfile 72.5%Language:Makefile 27.5%