max-pfeiffer / rust-game-server-docker

Docker container providing a Rust dedicated game server

Home Page:https://hub.docker.com/r/pfeiffermax/rust-game-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Poetry Ruff pipeline workflow Docker Image Size (latest semver) Docker Pulls

Rust Game Server - Docker Image

This Docker image provides a Rust dedicated game server.

Facepunch releases a new game update for the Rust community on a monthly basis every first Thursday. Each update requires players and servers to update their versions of the game.

I will add some automation, so new images are build every first Thursday.

Docker Hub: https://hub.docker.com/r/pfeiffermax/rust-game-server

GitHub Repository: https://github.com/max-pfeiffer/rust-game-server-docker

Usage

You can append all server configuration options as commands when running RustDedicated binary.

Docker Run

For instance run the Docker container like this:

docker run -it --publish 28015:28015/udp --publish 28016:28016/tcp pfeiffermax/rust-game-server:2024-06-23 +server.ip 0.0.0.0 +server.port 28015 +rcon.ip 0.0.0.0 +rcon.port 28016

Docker Compose

With Docker Compose you have you can fire up your own Rust server in no-time. For this, just clone this repo (or just copy and paste the compose.yaml file to your machine) and run the server with Docker compose like this:

git clone https://github.com/max-pfeiffer/rust-game-server-docker.git
cd rust-game-server-docker/examples/docker-compose
docker compose up

You can also run the Rust server in the background with option -d:

docker compose up -d

And show the logs, option -f follows the logs:

docker compose logs -f

If you want to connect to Rust server console via RCON use the CLI client:

docker compose run -it --rm rcon-cli
[+] Creating 1/0
 ✔ Container rust-server  Running                                                                                                                                             0.0s 
Waiting commands for rust-server:28016 (or type :q to exit)
> 

Production Deployment

If you want to deploy to a production (Linux) server, have a look at the compose.yaml in the Docker Compose production example.

Additional Information Sources

About

Docker container providing a Rust dedicated game server

https://hub.docker.com/r/pfeiffermax/rust-game-server

License:MIT License


Languages

Language:Python 92.7%Language:Dockerfile 4.6%Language:Shell 2.7%