Requirements:
- OS: Linux
- Software: git, docker, bash
Additional information: The world data for your server will be saved on the host in $HOME/valheim_data of the user that invoked sh start.sh. i.e. Your world data is not in the docker container.
How to use:
- Clone the repository
git clone https://github.com/sai1boat/valheim-server.git
- Change directory to project root
cd valheim-server
-
Customize the start.sh file with your preferred text editor. Change the world name, server name, and password.
-
Build the docker image. You do this also when you desire to update the server code:
sudo docker rmi -f valheim
sudo docker build -t valheim .
- Run the following command to start the server
sh start.sh
- You can tail the logs by running this command (control-c to stop):
sh logs.sh
- Run the following comand to stop the server.
sh stop.sh