adds UPnP service to Factorio Docker Compose configuration

This commit is contained in:
2024-11-11 15:19:41 +01:00
parent 91d68a507c
commit 857225c049

View File

@ -1,5 +1,17 @@
name: factorio
services: 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" image: "ofsm/ofsm:latest"
container_name: "factorio-server-manager" container_name: "factorio-server-manager"
restart: "unless-stopped" restart: "unless-stopped"