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.
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) |
First thing is to build the container, it uses the APP_NAME from the top of the Makefile.
make build
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 the container with the stop command, or from Docker Desktop.
make stop
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
The /data/oxide directory contains some of my preferred oxide mods such as better loot.