mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-11-10 04:37:23 +01:00
point to dtandersen repo
This commit is contained in:
parent
2d1f625219
commit
fd4ed925b2
41
README.md
41
README.md
@ -1,22 +1,21 @@
|
||||
Factorio
|
||||
=====
|
||||
A Docker image for the headless [Factorio](http://www.factorio.com) server.
|
||||
An Alpine based Docker image for the headless [Factorio](http://www.factorio.com) server.
|
||||
|
||||
Current Version
|
||||
-----
|
||||
0.12.30
|
||||
|
||||
### What's new ?
|
||||
* Added possibility to add the no-auto-pause option
|
||||
* Added possibility to allow commands in game
|
||||
* Automatically takes latest save or autosave. when restarting the container.
|
||||
* Added possibility to change default autosave interval
|
||||
* Added possibility to change default autosave slots
|
||||
* Added possibility to mount a mod volume to have your mods in your multiplayer session
|
||||
### Features
|
||||
* Automatically takes latest save or autosave when restarting the container.
|
||||
* Volumes for saves and mods
|
||||
* Set autosave interval and number of saves.
|
||||
* Enable/disable the no-auto-pause option.
|
||||
* Enable/disable console commands in game.
|
||||
|
||||
Versions
|
||||
-----
|
||||
I'm keeping the image up to date. If you need to use an older version, checkout out the different [tags](https://hub.docker.com/r/zopanix/factorio/tags/).
|
||||
If you need to use an older version, checkout out the different [tags](https://hub.docker.com/r/dtandersen/factorio/tags/).
|
||||
|
||||
How to use ?
|
||||
-----
|
||||
@ -26,7 +25,7 @@ This runs factorio with default settings, and your save will be kept :
|
||||
docker run -d \
|
||||
-v [PATH]:/opt/factorio/saves \
|
||||
-p [PORT]:34197/udp \
|
||||
zopanix/factorio
|
||||
dtandersen/factorio
|
||||
```
|
||||
* Where [PATH] is a folder where you'll put your saves, if there already is a save in it with the string "save", that one will be taken by default, otherwize, a new one will be made.
|
||||
* Where [PORT] is the port number you choose, if you're going to launch it on your local machine, don't use the port 34197, take another one at random.
|
||||
@ -36,7 +35,7 @@ docker run -d \
|
||||
```
|
||||
docker run -d \
|
||||
-p [PORT]:34197/udp \
|
||||
zopanix/factorio
|
||||
dtandersen/factorio
|
||||
```
|
||||
This will generate a new random map with default settings.
|
||||
#### With map persistence
|
||||
@ -44,7 +43,7 @@ This will generate a new random map with default settings.
|
||||
docker run -d \
|
||||
-v [PATH]:/opt/factorio/saves \
|
||||
-p [PORT]:34197/udp \
|
||||
zopanix/factorio
|
||||
dtandersen/factorio
|
||||
```
|
||||
This will generate a new random map with default settings and save it onto the volume.
|
||||
Replace [PATH] with a path to a folder on the host where the map will be saved.
|
||||
@ -53,7 +52,7 @@ Replace [PATH] with a path to a folder on the host where the map will be saved.
|
||||
docker run -d \
|
||||
-v [PATH]:/opt/factorio/saves \
|
||||
-p [PORT]:34197/udp \
|
||||
zopanix/factorio
|
||||
dtandersen/factorio
|
||||
```
|
||||
It's the same as above, it takes the last modified file which contains the word save in the filename as current save when booting the server. This allows when upgrading the container to take the last save, you don't have to rename the last autosave as save.zip
|
||||
#### Autosave interval
|
||||
@ -62,7 +61,7 @@ You can set the autosave interval. By default it is set at 2 minutes bud you can
|
||||
docker run -d \
|
||||
--env FACTORIO_AUTOSAVE_INTERVAL=[NUMBER] \
|
||||
-p [PORT]:34197/udp \
|
||||
zopanix/factorio
|
||||
dtandersen/factorio
|
||||
```
|
||||
Where [NUMBER] is the number of minutes between autosaves.
|
||||
#### Autosave slots
|
||||
@ -71,7 +70,7 @@ You can set the number of autosave slots. By default it is set at 3 slots bud yo
|
||||
docker run -d \
|
||||
--env FACTORIO_AUTOSAVE_SLOTS=[NUMBER] \
|
||||
-p [PORT]:34197/udp \
|
||||
zopanix/factorio
|
||||
dtandersen/factorio
|
||||
```
|
||||
Where [NUMBER] is the number of autosave slots.
|
||||
#### Mounting mod volume
|
||||
@ -80,7 +79,7 @@ As everybody knows about factorio is you can add mods to it. Now you can also do
|
||||
docker run -d \
|
||||
-v [PATH]:/opt/factorio/mods \
|
||||
-p [PORT]:34197/udp \
|
||||
zopanix/factorio
|
||||
dtandersen/factorio
|
||||
```
|
||||
Where [PATH] is the path to the folder with your mods.
|
||||
#### Allowing in-game commands
|
||||
@ -89,7 +88,7 @@ I've always disabled in-game commands because I think it is like cheating, howev
|
||||
docker run -d \
|
||||
--env FACTORIO_DISSALOW_COMMANDS=false \
|
||||
-p [PORT]:34197/udp \
|
||||
zopanix/factorio
|
||||
dtandersen/factorio
|
||||
```
|
||||
#### Activating no-auto-pause in the game when no one is on the server
|
||||
I do not recommend this feature, bud it can make the game more difficult if you're up for a challenge :-). Just set the "FACTORIO_NO_AUTO_PAUSE" variable to "true".
|
||||
@ -97,7 +96,9 @@ I do not recommend this feature, bud it can make the game more difficult if you'
|
||||
docker run -d \
|
||||
--env FACTORIO_NO_AUTO_PAUSE=true \
|
||||
-p [PORT]:34197/udp \
|
||||
zopanix/factorio
|
||||
dtandersen/factorio
|
||||
```
|
||||
### ToDo's
|
||||
* Add cutom savename for people with a lot of saves
|
||||
|
||||
### Credits
|
||||
|
||||
Based on [Zopanix' Factorio Server](https://github.com/zopanix/docker_factorio_server).
|
||||
|
Loading…
Reference in New Issue
Block a user