You want to host your own dedicated Avorion Server? Best in a docker container? Then you've come to the right place!
This small side project of mine provides a Dockerfile
that will always install and update to the latest steamcmd
and Avorion server files. The entire server runs inside a docker container and allows you to easily play with your friends or host a public server. The server can easily be updated and managed by using make
.
Follow the steps to get startet!
Clone this repository and its content using
git clone https://github.com/cbrgm/avorion-docker
In the directory type the following make
command to build an image with the latest server files for your docker container
make build
This will automatically create two additional folders world
and backup
. The world
folder will be mounted inside the container and will persist all server data. You can easily create a backup of them by simply copying the folders content. The backup
folder will be used for backup data saves.
Start your server, so it will generate all server files into world
folder. Important: Add your steam id or the steam id of your server administrator before running the container!
make run ADMIN=<Steam_id>
Stop the container first (make stop
). In your world
folder adjust the server.ini
and change to values. An explanation of each parameter can be found on the web. Start your container after changing your server.ini
and start playing!
You can now connect to your server using yourserver-ip/domain at the Avorion Multiplayer menu. Congratulations! :-)
To start the server use:
make start
To stop the server use:
make stop
To restart the server use:
make restart
To get the logs of the server use:
make logs
This will copy the folder world
to the backup
directory with format "year-month-date-backup".
make backup
Once a new version of Avorion is released you can easily upgrade your server with the latest server files. Do the following
- Perform a backup of your world data (
make backup
) - Stop, remove and delete your docker container and image
docker stop avorion-docker
docker rm avorion-docker
docker rmi avorion-server
- Repeat the installation steps explaned above
- Copy your backup from
backup
back intoworld
folder - Done!
You have suggestions for improvements or features you miss? You are welcome to express all your wishes here. Just create a new Issue and it will be taken care of quickly!
This script was originally developed by Christian Bargmann. I wanted to play Avorion together with some friends, this is about how I ended up :-)