This commit is contained in:
parent
3b506670dd
commit
1d3eb276ca
@ -62,6 +62,8 @@
|
|||||||
state: present
|
state: present
|
||||||
- name: yore
|
- name: yore
|
||||||
state: present
|
state: present
|
||||||
|
- name: factorio
|
||||||
|
state: present
|
||||||
# This needs to be done for any services where user:
|
# This needs to be done for any services where user:
|
||||||
# is set in docker-compose.yaml.
|
# is set in docker-compose.yaml.
|
||||||
- name: Create volume directories with correct permissions
|
- name: Create volume directories with correct permissions
|
||||||
@ -129,5 +131,7 @@
|
|||||||
state: present
|
state: present
|
||||||
- name: yore
|
- name: yore
|
||||||
state: present
|
state: present
|
||||||
|
- name: factorio
|
||||||
|
state: present
|
||||||
- name: zomboid
|
- name: zomboid
|
||||||
state: absent
|
state: absent
|
||||||
|
|||||||
4
docker/docker/factorio/Dockerfile
Normal file
4
docker/docker/factorio/Dockerfile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
FROM factoriotools/factorio:2.0.73
|
||||||
|
|
||||||
|
COPY server-settings.json /server-settings.json
|
||||||
|
ENTRYPOINT [ "/bin/sh", "-c", "mkdir -p /factorio/config && envsubst < /server-settings.json > /factorio/config/server-settings.json && exec /docker-entrypoint.sh" ]
|
||||||
10
docker/docker/factorio/README.md
Normal file
10
docker/docker/factorio/README.md
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# factorio
|
||||||
|
|
||||||
|
Add a `.env` file like this:
|
||||||
|
|
||||||
|
```
|
||||||
|
GAME_PASSWORD=...
|
||||||
|
```
|
||||||
|
|
||||||
|
Environment variables are put into `server-settings.json` during startup using `envsubst`.
|
||||||
|
See also: https://hub.docker.com/r/factoriotools/factorio.
|
||||||
15
docker/docker/factorio/docker-compose.yaml
Normal file
15
docker/docker/factorio/docker-compose.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
services:
|
||||||
|
factorio:
|
||||||
|
image: pbrinkmeier/factorio
|
||||||
|
build: .
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
GAME_PASSWORD: "${GAME_PASSWORD}"
|
||||||
|
DLC_SPACE_AGE: false
|
||||||
|
volumes:
|
||||||
|
- /var/lib/pbri/docker/factorio:/factorio
|
||||||
|
ports:
|
||||||
|
- "34197:34197/udp"
|
||||||
|
- "27015:27015/tcp"
|
||||||
72
docker/docker/factorio/server-settings.json
Normal file
72
docker/docker/factorio/server-settings.json
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
{
|
||||||
|
"name": "le epic factorio server",
|
||||||
|
"description": "Description of the game that will appear in the listing",
|
||||||
|
"tags": ["game", "tags"],
|
||||||
|
|
||||||
|
"_comment_max_players": "Maximum number of players allowed, admins can join even a full server. 0 means unlimited.",
|
||||||
|
"max_players": 0,
|
||||||
|
|
||||||
|
"_comment_visibility": ["public: Game will be published on the official Factorio matching server",
|
||||||
|
"lan: Game will be broadcast on LAN"],
|
||||||
|
"visibility":
|
||||||
|
{
|
||||||
|
"public": false,
|
||||||
|
"lan": false
|
||||||
|
},
|
||||||
|
|
||||||
|
"_comment_credentials": "Your factorio.com login credentials. Required for games with visibility public",
|
||||||
|
"username": "",
|
||||||
|
"password": "",
|
||||||
|
|
||||||
|
"_comment_token": "Authentication token. May be used instead of 'password' above.",
|
||||||
|
"token": "",
|
||||||
|
|
||||||
|
"game_password": "${GAME_PASSWORD}",
|
||||||
|
|
||||||
|
"_comment_require_user_verification": "When set to true, the server will only allow clients that have a valid Factorio.com account",
|
||||||
|
"require_user_verification": false,
|
||||||
|
|
||||||
|
"_comment_max_upload_in_kilobytes_per_second" : "optional, default value is 0. 0 means unlimited.",
|
||||||
|
"max_upload_in_kilobytes_per_second": 0,
|
||||||
|
|
||||||
|
"_comment_max_upload_slots" : "optional, default value is 5. 0 means unlimited.",
|
||||||
|
"max_upload_slots": 5,
|
||||||
|
|
||||||
|
"_comment_minimum_latency_in_ticks": "optional one tick is 16ms in default speed, default value is 0. 0 means no minimum.",
|
||||||
|
"minimum_latency_in_ticks": 0,
|
||||||
|
|
||||||
|
"_comment_max_heartbeats_per_second": "Network tick rate. Maximum rate game updates packets are sent at before bundling them together. Minimum value is 6, maximum value is 240.",
|
||||||
|
"max_heartbeats_per_second": 60,
|
||||||
|
|
||||||
|
"_comment_ignore_player_limit_for_returning_players": "Players that played on this map already can join even when the max player limit was reached.",
|
||||||
|
"ignore_player_limit_for_returning_players": false,
|
||||||
|
|
||||||
|
"_comment_allow_commands": "possible values are, true, false and admins-only",
|
||||||
|
"allow_commands": "admins-only",
|
||||||
|
|
||||||
|
"_comment_autosave_interval": "Autosave interval in minutes",
|
||||||
|
"autosave_interval": 10,
|
||||||
|
|
||||||
|
"_comment_autosave_slots": "server autosave slots, it is cycled through when the server autosaves.",
|
||||||
|
"autosave_slots": 5,
|
||||||
|
|
||||||
|
"_comment_afk_autokick_interval": "How many minutes until someone is kicked when doing nothing, 0 for never.",
|
||||||
|
"afk_autokick_interval": 5,
|
||||||
|
|
||||||
|
"_comment_auto_pause": "Whether should the server be paused when no players are present.",
|
||||||
|
"auto_pause": true,
|
||||||
|
|
||||||
|
"only_admins_can_pause_the_game": true,
|
||||||
|
|
||||||
|
"_comment_autosave_only_on_server": "Whether autosaves should be saved only on server or also on all connected clients. Default is true.",
|
||||||
|
"autosave_only_on_server": true,
|
||||||
|
|
||||||
|
"_comment_non_blocking_saving": "Highly experimental feature, enable only at your own risk of losing your saves. On UNIX systems, server will fork itself to create an autosave. Autosaving on connected Windows clients will be disabled regardless of autosave_only_on_server option.",
|
||||||
|
"non_blocking_saving": false,
|
||||||
|
|
||||||
|
"_comment_segment_sizes": "Long network messages are split into segments that are sent over multiple ticks. Their size depends on the number of peers currently connected. Increasing the segment size will increase upload bandwidth requirement for the server and download bandwidth requirement for clients. This setting only affects server outbound messages. Changing these settings can have a negative impact on connection stability for some clients.",
|
||||||
|
"minimum_segment_size": 25,
|
||||||
|
"minimum_segment_size_peer_count": 20,
|
||||||
|
"maximum_segment_size": 100,
|
||||||
|
"maximum_segment_size_peer_count": 10
|
||||||
|
}
|
||||||
1
docker/envs/factorio/.env
Normal file
1
docker/envs/factorio/.env
Normal file
@ -0,0 +1 @@
|
|||||||
|
GAME_PASSWORD=apfel123birneBingus
|
||||||
Loading…
x
Reference in New Issue
Block a user