Skip to content

mvanzanten/docker-rust-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Rust Server (Docker)

example workflow

This is a very simple installation of rust server and oxide with some of my preferred oxide mods.

Docker image can be found here uacmarine556/rust.

Environment variables

Set the following setting for your server (values are set in docker compose).

Variable Description
SERVER_PORT The port to host the server (28015)
SERVER_HOSTNAME The name to set for the server (LemonAid)
SERVER_SEED The seed to set the map design (32345)
SERVER_SAVE_INTERVAL Frequency in seconds to save game (300)
SERVER_MAX_PLAYERS Max player count (75)
SERVER_WORLD_SIZE The world size (4092)
APP_PORT The port to set for Rust+ (28082)
RCON_PORT The port to set for RCON (28016)
RCON_PASSWORD The password to set for RCON (change_me)
DECAY_SCALE The decay scale for buildings (0)
ENABLE_OXIDE Whether or not to install oxide (true, false)

Usage

Build

First thing is to build the container, it uses the APP_NAME from the top of the Makefile.

make build

Run

Make sure you have a directory called data in the directory where you launch the run command. This is where the game will be installed and where we have the oxide mods.

make run

Stop

Stop the container with the stop command, or from Docker Desktop.

make stop

Port Forwarding

If running this in your home network you will need to port forward 28015/udp, 28016/tcp, 28082/tcp from your router to the local IP of the rust server. You will also need to make sure the same ports:protocols are open on the server firewall.

Testing port forward (netcat, telnet)

nc -v -u local_ip 28015
nc -v -u public_ip 28015

telnet local_ip 28016
telnet public_ip 28016

telnet local_ip 28082
telnet public_ip 28082

Oxide

The /data/oxide directory contains some of my preferred oxide mods such as better loot.

About

A very simple implementation of a rust game server using steamcmd docker container code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages