adds UPnP service to Factorio Docker Compose configuration

This commit is contained in:
Menno van Leeuwen 2024-11-11 15:19:41 +01:00
parent 91d68a507c
commit 857225c049
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -1,5 +1,17 @@
name: factorio
services:
factorio-server-manager:
upnp:
image: ghcr.io/vleeuwenmenno/auto-upnp:latest
restart: unless-stopped
network_mode: host
environment:
UPNP_DURATION: 86400 # 24 hours in seconds
PORTS: |
[
{"port": 34197, "protocol": "udp"}
]
server-manager:
image: "ofsm/ofsm:latest"
container_name: "factorio-server-manager"
restart: "unless-stopped"