wihan/dev

projects / detail

factorio-server

github ↗

The factory must grow, and it must grow declaratively. This repo is a single compose file: Factorio Server Manager runs the headless server and puts a web UI in front of it for saves, mods, and restarts, so server administration does not require SSH.

The manager is Tricade’s Factorio Server Manager, carrying on the OpenFactorioServerManager line. All credit for the UI, the mod handling, and the clean save-and-stop behavior goes there; this repo only pins it and mounts two volumes.

Dokploy pulls the repo on push and redeploys. The domain, DNS, and the stack itself are declared in wihan-dev-tf.

The one DNS lesson

Game traffic is UDP, so the record cannot ride the Cloudflare proxy. A DNS-only record that CNAMEs to a proxied hostname still resolves to the edge, which quietly eats your packets. It has to be a plain A record to the server.

services:
  manager:
    image: ghcr.io/tricade/factorio-server-manager:0.17.5
    ports:
      - "34197:34197/udp"
    volumes:
      - fsm-data:/opt/fsm-data
      - factorio-data:/opt/factorio