Skip to content

b3nz0/rfactor2-docker-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

rFactor2 Docker Server

A Docker container solution for running rFactor2 dedicated servers, combining the power of containerized Windows environments with automated rFactor2 server setup.

Overview

This project creates a containerized rFactor2 dedicated server by combining:

Features

  • Fully containerized rFactor2 dedicated server
  • Automated server configuration and setup
  • Easy deployment and management
  • Isolated server environment

Prerequisites

  • Docker installed on your host system
  • Sufficient system resources for Windows virtualization

Quick Start

# Clone this repository
git clone https://github.com/b3nz0/rfactor2-docker-server.git
cd rfactor2-docker-server

# Build and run the container
docker-compose up -d

You can monitor the progress of the build by browsing to http://ip-addr-of-your-docker-host:8006

Configuration

Once the container has initialised and Windows has completed installing, you are presented with a Desktop environment.

The deployment is supposed to launch install.bat automatically from the C:\OEM folder - if this doesn't occur, manually execute the BAT file to deploy steamcmd and rfactor2-dedicated-server or simply run the ps1 file - either should work fine.

Content

Modify rf2serversetup.ps1 with the content you require.

...
./steamcmd +login anonymous +workshop_download_item 365960 1629100532 +quit
./steamcmd +login anonymous +workshop_download_item 365960 1629067802 +quit
./steamcmd +login anonymous +workshop_download_item 365960 1629142012 +quit
./steamcmd +login anonymous +workshop_download_item 365960 1629177826 +quit
...

In the above example, 365960 == rFactor2 and 1629100532 etc are Workshop IDs from the RF2 Steam Workshop

Config rf2

Once the bootstrapping is complete (steamcmd + rfactor-dedicated-server + steam workshop content) you need to use ModMgr.exe to install all the content which should have been automatically moved from C:\steamcmd\steamsapps\workshop\content\365960 to C:\rfactor2-dedicated\Packages

Once all the content has been installed, use MAS.exe to build a mod package for use with the dedicated server. This should be fairly straight forward, I'm not going to go into detail on this as yet. I may update this README in future.

Then simply launch C:\rfactor2-dedicated\rFacror2 Dedicated.exe and select the mod package you created using MAS.exe - complete the additional configuration settings and happy lapping.

Networking

Don't forget to port-forward/pinhole the required ports from your router to your docker host. The ports to port-forward are listed in the docker-compose.yaml

- 54297:54297/tcp
- 54297:54297/udp
- 64297:64297/tcp
- 64298:64298/udp
- 64299:64299/udp

DO NOT EXPOSE tcp/8006 or tcp/3389 TO THE INTERNET

GO NEXT LEVEL ><! - expose the containers VNC interface using Cloudflared tunnels/Cloudflare ZTNA Access Policies (FREE!) and give access to a friend or colleagues SECURELY via a web-browser. Simples!

Credits

This project builds upon the excellent work from:

License

Very little of this is my own work. I've merely brought other projects together. Be respectful of the other projects licenses.

Contributing

Open a PR

Support

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published