This example contains a simple docker compose file for running the Rust server on your machine (MacOS, Windows, Linux).
It demonstrates the usage of a Docker Volume to persist the Rust server data.
Clone the repo and start the Rust server:
git clone https://github.com/max-pfeiffer/rust-game-server-docker.git
cd rust-game-server-docker/examples/docker-compose
docker compose up -dStop the server:
docker compose downAnd show the logs, option -f follows the logs:
docker compose logs -fWhen spinning up the containers with Docker compose, an instance of the Rust Websocket RCON client is started as well.
If you want to connect to Rust server console or want to check on the server statistics, just point your web browser to: http://localhost
Then enter the address of your server and the RCON password in the web interface.