Docker Guide - SteamServerUI/StationeersServerUI GitHub Wiki

This guide covers how to run StationeersServerUI using Docker and Docker Compose.

OUTDATED; USE https://hub.docker.com/u/steamserverui

Resource Considerations

Before proceeding with Docker, consider the resource implications:

Stationeers servers can be resource-intensive depending on:

  • Base size and complexity
  • Logic systems
  • Number of players
  • Atmosphere calculations

Large setups may require 12+ CPU cores and 30GB+ of RAM. Docker adds some overhead that may impact performance for resource-intensive servers.

Docker works well for lightweight setups, but bare metal or a VM might be better for larger projects.

Building Your Own Docker Image

To build the Docker image locally:

  1. Clone the Repository

    git clone https://github.com/jacksonthemaster/StationeersServerUI.git
    cd StationeersServerUI
    
  2. Build the Image

    docker build -t stationeers-server-ui:latest .
    
  3. Run the Image

    docker run -d --name stationeers-ui -p 8443:8443 -p 27016:27016 -v ./UIMod/config:/app/UIMod/config -v ./saves:/app/saves stationeers-server-ui:latest
    
    • Check if the container is running:

      docker ps
      
    • View logs (if debugging is needed):

      docker logs stationeers-ui
      
    • Stop the container:

      docker stop stationeers-ui
      

Running with Docker Compose (Own Image)

  1. Create (or use provided) compose.yml File

    services:
      stationeers-server:
        container_name: stationeers-server
        build : .
        image: stationeers-server-ui:latest
        deploy:
          resources:
            limits:
              cpus: '4'
              memory: 16G
              pids: 1
            reservations:
              cpus: '2'
              memory: 4G
        ports:
          - "8443:8443"
          - "27015:27015/tcp"
          - "27015:27015/udp"
          - "27016:27016/tcp"
          - "27016:27016/udp"
        volumes:
          - ./saves:/app/saves:rw
          - ./UIMod/config:/app/UIMod/config:rw
        environment:
          - STEAMCMD_DIR=/app/steamcmd
        restart: unless-stopped
    
  2. Build the Docker Image

    docker compose build
    
  3. Run Docker Compose

    docker compose up -d
    
  4. Check Logs (Optional)

    docker compose logs -f
    

    Press CTRL+C to exit the log view.

Next Steps