This repository contains a small Docker Compose setup for running Factorio.
- Make sure you have Docker Compose version 2.0 or higher.
- Ensure the "data" folder in your project directory has the owner 845:845:
sudo chown -R 845:845 data
- Open the necessary ports in your firewall (adjust if not using UFW):
sudo ufw allow 27015/tcp sudo ufw allow 34197/udp
Clone this repository and run the following command:
docker compose up -d
This starts the Factorio server in detached mode. You can view the logs with:
docker compose -f path/to/docker-compose.yaml logs -f
- Edit
RCON_PASSWORD
to secure remote control access. - If you want to use mods or existing Factorio saves, place them in the
data
folder. - For more advanced configurations, check out the official Factoriotools/Factorio Docker repository.