Skip to content

CyberT3C/ValheimServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues GNU GPL v3 License

ValheimServer

Todo: make a Logo

Table of Contents

About The Project

Dedicated Valheim Server inside a Docker Container

Project Goals

  • #1589F0 Make a clean valheim server base image
Principles
KISS Keep it simple, stupid
Test First

My goal is to make a docker image which everyone can run.
Even someone without any network and docker knowledge should be able to runs this. The Image should als be well tested and just run always (this is a little bit in > conflict with the unkown valheim server code)

Version 0.21 is out now

  • #c5f015 Added Parameter passing

  • #c5f015 Added Data peristence (Wolrd Data and Player Location)

  • #f03c15 Changing the port will not work at the moment

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

You need to install docker on your device. Examples below: For more information, please refer to the
Get Docker
Geting started

Installation

  1. Pull docker image
    docker pull cyb3r/valheim-server
    
  2. Run the docker container
    docker run --name my-custom-valheim-server -d -p 2456-2458:2456-2458/udp cyb3r/valheim-server
    

Adavanced with parameters

docker run --name my-custom-valheim-server -d -p 2456-2458:2456-2458/udp cyb3r/valheim-server -name "A real Name" -port "2456" -world "Dockerhein" -password "docker"

Test Locally

  1. Clone the ValheimServer
    git clone https://github.com/CyberT3C/ValheimServer.git
    
  2. Build docker image locally
    docker build --no-cache -t valheimserver-01 .
    
  3. start docker container locally in interactive mode
    docker run -it -p 2456-2458:2456-2458/udp valheimserver-01 
    

Usage

Examples and Screenshots will be added in the future

Roadmap

See the open issues for a list of proposed features (and known issues).

Help with Docker and Troubleshooting

Troubleshooting

#this will not start the server, so u can search for files or data and check if everything is fine
docker run -it -p 2456-2458:2456-2458/udp cyb3r/valheim-server bash

# start with full command output
docker run -it -p 2456-2458:2456-2458/udp cyb3r/valheim-server -name "A real Name" -port "2456" -world "Dockerhein" -password "docker"

You can stop the container by using ctrl + c.

Docker on Windows

How to access/show volume data

run a shell (e.g. powershell, mingw) as adminstrator

docker run --rm -it -v /:/vm-root alpine:edge ls -l /vm-root/yourpath

Example

Get Mountpoint

docker volume ls
docker volume inspect b73773dc39e689cc5be0f538f3f59aa04dcc6f4eb5fcdadf70e6d632b48ee6c8
{
        "CreatedAt": "2021-03-04T13:45:14Z",
        "Driver": "local",
        "Labels": null,
        "Mountpoint": "/var/lib/docker/volumes/b73773dc39e689cc5be0f538f3f59aa04dcc6f4eb5fcdadf70e6d632b48ee6c8/_data",
        "Name": "b73773dc39e689cc5be0f538f3f59aa04dcc6f4eb5fcdadf70e6d632b48ee6c8",
        "Options": null,
        "Scope": "local"
    }

Show data

docker run --rm -it -v /:/vm-root alpine:edge ls -l /vm-root/var/lib/docker/volumes/b73773dc39e689cc5be0f538f3f59aa04dcc6f4eb5fcdadf70e6d632b48ee6c8/_data/

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the GNU General Public License v3 License. See LICENSE for more information.

Contact

Niklas - @omnificutie

About

Dedicated Valheim Server inside a Docker Container

Resources

License

Stars

Watchers

Forks

Packages

No packages published