Sign inSign up

thijsvanloef/barotrauma-server-docker

By thijsvanloef

•Updated over 3 years ago

This is a Dockerized version of the Barotrauma dedicated server. Using cm2network/steamcmd

Image
1

1.4K

thijsvanloef/barotrauma-server-docker repository overview

⁠Barotrauma Server Docker

Release Docker Pulls Docker Stars Image Size

This is a Dockerized version of the Barotrauma⁠ dedicated server.

⁠How to use

Keep in mind that you'll need to change the environment variables⁠.

⁠Docker Compose

This repository includes an example docker-compose.yml⁠ file you can use to setup your server.`

services:
   barotrauma:
      image: thijsvanloef/barotrauma-server-docker
      restart: unless-stopped
      container_name: barotrauma-server
      ports:
        - 27015:27015/udp
        - 27016:27016/udp
      environment:
         - SERVERNAME=testing # recommended
         - PASSWORD=password # recommended
         - OWNER_STEAMNAME= # recommended
         - OWNER_STEAMID= # recommended
         - MAX_PLAYERS=10 # optional
         - PORT=27015 # optional
         - QUERYPORT=27016 # optional
      volumes:
         - ./barotrauma-test-folder:/barotrauma/
⁠Docker Run
docker run -d \
    --name barotrauma-server \
    -p 27015:27015/udp \
    -p 27016:27016/udp \
    -v ./<barotrauma-host-folder>:/barotrauma/ \
    -e SERVERNAME=server-name \
    -e PASSWORD=password \
    -e OWNER_STEAMNAME= \
    -e OWNER_STEAMID= \
    -e MAX_PLAYERS=10 \
    -e PORT=27015 \
    -e QUERYPORT=27016 \
    --restart unless-stopped \
    thijsvanloef/barotrauma-server-docker

⁠Volumes

By default the data of the barotrauma server is not persistant, you'll need to create a folder that you can mount in the container. When starting the server, the following folders will be created:

FolderDescription
configFolder with clientpermissions.xml and serversettings.xml
savesFolder in which the game saves will be saved
submarinesFolder where you can add custom submarine files
⁠Environment variables

You can use the following values to change the settings of the server on boot. It is highly recommended you set the following environment values before starting the server:

  • OWNER_STEAMNAME
  • OWNER_STEAMID
  • PASSWORD
VariableInfoDefault ValuesAllowed Values
OWNER_STEAMNAME*Steam Username of the server administratornoneString
OWNER_STEAMID*Steam ID of the server administratornoneString
PUBLICITYSetting to make the server visible in the Barotrauma server browserfalsetrue/false
SERVERNAMEName of the serverServerString
PASSWORD*Password used to enter the server (highly recommended)noneString
MAX_PLAYERSMaximum amount of players that are able to join simultaniously101-16
PORT**Game Port270151024-65535
QUERY_PORT**Query Port270161024-65535

*highly recommended to set

**advanced users only if you don't run multiple servers, you'll most likely not want to change this

⁠Reporting Issues/Feature Requests

Issues/Feature requests can be submitted by using this link⁠.

Tag summary

Content type

Image

Digest

sha256:a53b42b1c…

Size

220.1 MB

Last updated

over 3 years ago

docker pull thijsvanloef/barotrauma-server-docker