Tilted Online
  • Overview
  • Guides
    • Getting Started
    • Client setup
      • Initial setup
        • Removing the old setup
        • Installing the game
        • Launching the game
      • Overview
      • Using ModOrganizer2 (MO2)
        • Installing ModOrganizer2
          • Installating the MO2 mod manager
          • Initial MO2 setup
          • Creating a MO2 profile
          • Creating a separator in MO2
        • Disabling the included Creation Club content
        • Utilities
          • Address Library for SKSE
        • Skyrim Together Reborn
          • Downloading Skyrim Together Reborn
          • Installing Skyrim Together Reborn
          • Locating Skyrim Together Reborn through MO2
          • Making a custom launch option in MO2
          • Launching SkyrimTogether through MO2
        • Playing Skyrim Together Reborn
          • Before we begin
          • First time launch
          • Connecting to a server
      • Using Vortex Mod Manager (VMM)
        • Installing Vortex Mod Manager
          • Installing the Vortex Mod Manager
          • Initial VMM setup
          • Creating a profile in VMM
        • Disabling the included Creation Club content
        • Utilities
          • Address Library for SKSE
        • Skyrim Together Reborn
          • Download Skyrim Together Reborn
          • Making a custom launch option in VMM
          • Launching SkyrimTogether through VMM
        • Playing Skyrim Together Reborn
          • Before we begin
          • First time launch
          • Connecting to a server
    • Server setup
      • ReadMe first
      • Terminology
      • Overview
      • Windows setup
        • Regular setup
          • Locating the STServer.ini
          • Editing STServer.ini
          • Explaining bEnableModcheck
          • Locating IP addresses
          • Port forwarding
          • Launching your server
        • ZeroTier setup
          • Locating the STServer.ini
          • Editing STServer.ini
          • Explaining bEnableModcheck
          • Initial ZeroTier setup
          • Configuring ZeroTier network
          • Authorizing users in ZeroTier network
          • Connecting to your server
        • Local setup
          • Locating the STServer.ini
          • Editing STServer.ini
      • Linux setup
        • Docker setup
        • Locating your IP address
        • Locating the STServer.ini
        • Editing STServer.ini
        • Explaining bEnableModcheck
        • Port forwarding
      • Pterodactyl
      • Server configuration parameters
    • Troubleshooting
      • Address Library error
      • Closing the SkyrimTogether UI (STR UI) makes it reopen
      • Disabling the included Creation Club content
        • Using ModOrganizer2
        • Using Vortex Mod Manager
      • During server setup, my firewall didn't ask for network permission!
      • Hostile NPCs only target my friends, not me
      • How do I uninstall the mod?
        • Using ModOrganizer2
        • Using Vortex Mod Manager
      • I need help updating the Skyrim Together Reborn mod
      • I selected the wrong .exe, when first launching SkyrimTogether
      • I want to install Skyrim Script Extender (SKSE)
        • Using ModOrganizer2
        • Using Vortex Mod Manager
      • My game crashes when I open it or connect to a server
      • My game runs with very low FPS
        • Using ModOrganizer2
        • Using Vortex Mod Manager (VMM)
      • Naked NPCs / players
      • The STR UI doesn't appear when I press RIGHT CTRL or F2
      • The server list is not appearing
      • My game opens to a black screen for 2-10 seconds and then closes
      • STR UI shows my filesystem
      • Resource folder does not exist
    • Scripting
      • Core Math functions
      • Player functions
      • GameServer
      • Components
      • Services
      • World
      • Event Handlers
  • General information
    • Features
    • Playguide
    • FAQ
    • Supported games
    • Helpful Links
    • Admin
    • Commands
      • Server Console
      • In-Game Chat
    • Command line arguments
  • Technical documentation
    • Build guide
      • Build Docker server image
      • Troubleshooting
    • Overview
    • Contributing to translations
Powered by GitBook
On this page
  • Installing Docker
  • Creating paths for the Skyrim Together Reborn server
  • Starting the server using Docker
  • Start/Stopping your docker server
  • I want to use docker-compose, what is the template?

Was this helpful?

  1. Guides
  2. Server setup
  3. Linux setup

Docker setup

In this guide, we'll assume you're running Ubuntu 22.04 LTS. Because we won't be covering many distros, the guide will only use the most popular one.

Installing Docker

  1. Open your terminal

  2. Do a sudo apt update

  3. Then we must install the following prerequisites: sudo apt install -y apt-transport-https ca-certificates curl software-properties-common

  4. Then we need to add the GPG key from the official Docker repository to our system: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

  5. Then we will add the Docker repository to our APT sources: echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

  6. Do another sudo apt update to let the system update the packages, now including the Docker repository.

  7. Let's install Docker and docker-compose: sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin

  8. After that's done, let's add the current user to the docker group, so we don't need to write sudo all the time while using docker: sudo usermod -aG docker ${USER}

  9. You will need to re-log your user, for this to take effect (open and close your terminal, if you're using a headless Ubuntu server)

Creating paths for the Skyrim Together Reborn server

I like to put my stuff in /opt/ so that's what we will do for now

  1. Let's create the folders needed. We will need sudo privilige to create folders in /opt/. sudo mkdir -p /opt/docker/skyrimserver/{config,Data,logs}

  2. Now let us take ownership of the folders sudo chown -R ${USER}:${USER} /opt/docker

Starting the server using Docker

  1. Docker is extremely simple to get up and running

  2. We just need to run this command, and Docker will take care of the rest: docker run -d -it --name skyrimserver -p 10578:10578/udp -v /opt/docker/skyrimserver/config:/home/server/config -v /opt/docker/skyrimserver/Data:/home/server/Data -v /opt/docker/skyrimserver/logs:/home/server/logs tiltedphoques/st-reborn-server:latest

  3. Docker will now download the latest server image, and run it afterwards.

  4. If you want to see the logs in your terminal, you can use this command: docker logs -tf "skyrimserver"

  5. If you would like to attach to your server console to enter commands (such as /help), you can use this command: docker attach skyrimserver

    • Note: to detach from the console, the default hotkey is CTRL+P,Q. This means you hold Left-Control, then you press and release P, and then press and release Q.

  6. Now your server is up and running.

Start/Stopping your docker server

  1. To stop your skyrimserver, simply run the following command in your console and it will stop your Skyrim Together Reborn server:

    • docker stop skyrimserver -t 1

  2. To start it again, simply run the following command in your console and it will start your Skyrim Together Reborn server again:

    • docker start skyrimserver

  3. To restart the server, run the following command in your console and it will stop *and* start the server:

    • docker restart skyrimserver -t 1

I want to use docker-compose, what is the template?

version: "3"

services:
  skyrimserver:
    container_name: skyrimserver
    image: tiltedphoques/st-reborn-server:latest
    ports:
     - "10578:10578/udp"
    volumes:
     - /opt/docker/skyrimserver/config:/home/server/config
     - /opt/docker/skyrimserver/logs:/home/server/logs
     - /opt/docker/skyrimserver/Data:/home/server/Data
     - /etc/localtime:/etc/localtime:ro
     - /etc/timezone:/etc/timezone:ro
    restart: unless-stopped
    stdin_open: true
    tty: true

Onwards to the next step!

PreviousLinux setupNextLocating your IP address

Last updated 2 years ago

Was this helpful?