Sign inSign up

oytunistrator/rustserver

By oytunistrator

•Updated about 1 year ago
Archived

Rust Server with Parameters

Image
Internet of things
0

968

oytunistrator/rustserver repository overview

⁠🛠️ oytunistrator/rustserver

A Docker image for hosting a Rust Dedicated Server. Uses SteamCMD to automatically install and update Rust, so you can deploy your server quickly with Docker Compose or Docker Run.


⁠🚀 Usage

⁠Docker Compose
version: "3.9"
services:
  rust-server:
    image: oytunistrator/rustserver:latest
    container_name: rust-server
    ports:
      - "28015:28015/udp"   # Game port
      - "28016:28016/tcp"   # Query port
      - "28017:28017/tcp"   # RCON
    environment:
      - HOSTNAME=Rust Server
      - DESCRIPTION=Rust Server - Survive the wasteland!
      - MAXPLAYERS=100
      - SEED=12345
      - WORLD_SIZE=3000
      - RCONPORT=28017
      - RCONPASSWORD=changeme
      - IDENTITY=rustserver
      - SAVEINTERVAL=300
version: "3.8"

services:
  rust-server:
    build: .
    container_name: rust-server
    restart: unless-stopped
    environment:
      - GAMEPORT=28015
      - QUERYPORT=28016
      - RCONPORT=28017
      - RCONPASSWORD=presonlisea
      - HOSTNAME=ODZ Rust Server
      - MAXPLAYERS=666
      - IDENTITY=odzrust
      - SEED=12345
      - WORLD_SIZE=3000
      - SAVEINTERVAL=300
    ports:
      - "28015:28015/tcp"
      - "28015:28015/udp"
      - "28016:28016/udp"
      - "28017:28017/tcp"
    volumes:
      - rust_data:/data
    restart: unless-stopped

volumes:
  rust_data:
⁠Docker Run
docker run -d \
  --name rust-server \
  -p 28015:28015/udp \
  -p 28016:28016/tcp \
  -p 28017:28017/tcp \
  -e HOSTNAME="Rust Server" \
  -e DESCRIPTION="Rust Server - Survive the wasteland!" \
  -e MAXPLAYERS=100 \
  -e SEED=12345 \
  -e WORLD_SIZE=3000 \
  -e RCONPORT=28017 \
  -e RCONPASSWORD=changeme \
  -e IDENTITY=rustserver \
  -e SAVEINTERVAL=300 \
  -v rust-data:/data \
  oytunistrator/rustserver:latest

⁠⚙️ Environment Variables

VariableDescriptionDefault
HOSTNAMEServer name (shown in server browser)Rust Server
DESCRIPTIONServer description(empty)
MAXPLAYERSMaximum number of players100
SEEDWorld seedrandom
WORLD_SIZEWorld size (1000–6000)3000
IDENTITYServer identity / save folder namerustserver
SAVEINTERVALSave interval in seconds300
RCONPORTRCON port28017
RCONPASSWORDRCON password (for RustAdmin / rcon-cli)(empty)

⁠💾 Volumes

All persistent data is stored under /data. Mount this directory to keep your saves and configs between restarts:

  • World saves → /data/serverfiles/server/IDENTITY/
  • Config files (server.cfg, users.cfg) → /data/serverfiles/server/IDENTITY/cfg/

⁠🔑 Admin Setup

To grant yourself admin privileges, add your Steam64ID to users.cfg:

ownerid steamid "Username" "owner"
server.writecfg
  • ownerid → full admin
  • moderatorid → moderator with limited permissions
  • steamid → your steamid
  • Username → your username

⁠📝 Notes

  • On the first run, SteamCMD will download the Rust server files (this may take a few minutes).
  • RCON can be accessed using RustAdmin, rcon-cli, or any tool supporting WebRcon.

Tag summary

Content type

Image

Digest

sha256:61304d9ad…

Size

3 GB

Last updated

about 1 year ago

docker pull oytunistrator/rustserver