GithubHelp home page GithubHelp logo

jetbo / valheim-server Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 20 KB

Simple docker setup for a Valheim server with LinuxGSM

License: MIT License

Dockerfile 35.50% Shell 63.09% HTML 1.41%
valheim docker docker-compose linuxgsm

valheim-server's Introduction

valheim-server

Simple docker-compose setup for a valheim server running on LinuxGSM. App can be built to be portable for cloud container services.

Build the app with docker-compose up --build.

You can change the ENVs in the docker-compose. ENVs control the basic server config.

SERVER_PASSWORD       # Sets the server password (string)
SERVER_NAME           # Sets the server name (string)
SERVER_PUBLIC         # Sets if the server is public or not (0, 1)
SERVER_WORLD_NAME     # Sets the world name (string)
HEALTH_CHECK_PORT     # Sets the health check port (int)
ENABLE_CLEAN_SHUTDOWN # Enables the clean shutdown script. This script runs the vhserver stop command on SIG traps. (0, 1)
UPDATE_ON_RUN         # Updates LinuxGSM and the Valheim server on run (0, 1)

If you want to make sure the world saves before the container exits, enable ENABLE_CLEAN_SHUTDOWN in the ENV. Valheim saves to the world files when players leave and in time intervals. Killing the container suddenly could lead to corruption or world progress loss, so I recommend enabling this option.

If you want to the server to update itself (like on a nightly reboot cron) enable UPDATE_ON_RUN in the ENV. This will run both the LinuxGSM and Valheim server update commands before the server boots up. Keep in mind the server will start faster with this disabled. If disabled, remember to update the server manually or re-build the container periodically to install new versions.

Useful file locations

# Holds the Valheim world files and server user lists (admins, bans, etc)
# This directory is setup as a volume to remain persistent
/home/linuxgsm/.config/unity3d/IronGate/Valheim/

# GSM and game logs
# This directory is setup as a volume to remain persistent
/home/linuxgsm/gsm/log/

Hot Tips

I find it's useful to reboot the server once a day. It seems to help player lag.

Note This might not apply anymore since the socket backend rebuild in Valheim v0.146.8

valheim-server's People

Contributors

jetbo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.