GithubHelp home page GithubHelp logo

wrightcameron / valheim-docker-server Goto Github PK

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

Repository containing Docker image along with start file to startup Valheim.

Dockerfile 56.49% Shell 43.51%
docker-image valheim-server

valheim-docker-server's Introduction

Valheim Docker Server

Dedicated server for Valheim, with Valheim Plus.

About

Dedicated Docker image for video game Valheim. Valheim Plus is added for additional server configuration, so players will need to download Valheim Plus client. This image is self contained, with everything needed to stand up a Valheim headless dedicated server.

The base image this was built upon is a docker image containing just the steam CMD. Resulting in a very minimal amount of code needed to setup Valheim.

Build

If you are pulling down this repo and building the image yourself, use docker build -t valheim-server .

Environment Variables

There are four environment variables you can configure:

Variable Default Description
SERVER_NAME Valheim Server The name displayed in the server list
SERVER_PASSWORD 1234 The password required to join the server. Cannot be blank!
SERVER_PORT 2456 The first of to sequential ports the server will use
SERVER_WORLD Valheim The name of the world file (e.g. Valheim.fwl and Valheim.db)

Network

The network port is set in the Docker compose file or in the Docker command from CMI. The default port range is 2456-2457 udp. If standing up multiple Valheim servers, change the ports (along with map used).

Volume

Persistent data like admins, bans, map are stored in a volume. By default Dockerfile creates this unnamed volume. With docker-compose this volume can be changed to a bind mount.

Usage

Docker Compose

The docker-compose.yaml is included. Use docker-compose up -d to bring up the server, and then docker-compose down to bring the server down.

Docker CLI

docker run -it --rm \
    --name valheim-server \
    --env SERVER_NAME="myServer" \
    --env SERVER_PASSWORD="secret" \
    --env SERVER_PORT=2456 \
    --env SERVER_WORLD=Dedicated \
    -p 2456-2457:2456-2457/udp \
    --volume=/opt/valheim/data:/steam/.config/unity3d/IronGate/Valheim \
    -d wrightcameron/valheim-server

While running Docker Compose or Docker CLI interactively (not -d mode), you can simply press CTRL+C once to gracefully stop the server.

Shout-outs

These people and resources helped me get this working.

valheim-docker-server's People

Contributors

wrightcameron 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.