Sign inSign up

justmiles/the-forest

By justmiles

•Updated over 3 years ago

Docker image for The Forest dedicated server

Image
0

533

justmiles/the-forest repository overview

⁠Docker - TheForest Dedicated Server

Docker image for The Forest dedicated server

Build Status

⁠Environment Variables

Environment VarDefault ValueDescription
SERVER_STEAM_ACCOUNT(blank)Account token created from the Steam Game Server Account Management⁠ using app ID 242760
SERVER_IP0.0.0.0Server IP address - Note: If you have a router, this address is the internal address, and you need to configure ports forwarding
SERVER_STEAM_PORT8766Steam Communication Port - Note: If you have a router you will need to open this port.
SERVER_GAME_PORT27016Game Communication Port - Note: If you have a router you will need to open this port.
SERVER_QUERY_PORT27016Game Communication Port - Note: If you have a router you will need to open this port.
SERVER_NAMEthe-forestServer display name
SERVER_PLAYERS8Maximum number of players
ENABLE_VACoffEnable VAC (Valve Anti-cheat System at the server. Must be set off or on
SERVER_PASSWORD(blank)Server password. blank means no password
SERVER_PASSWORD_ADMIN(blank)Server administration password. blank means no password
SERVER_AUTOSAVE_INTERVAL30Time between server auto saves in minutes - The minumum time is 15 minutes, the default time is 30
DIFFICULTYNormalGame difficulty mode. Must be set to Peaceful Normal or Hard
INIT_TYPEContinueNew or continue a game. Must be set to New or Continue
SLOT1Slot to save the game. Must be set 1 2 3 4 or 5
SHOW_LOGSoffShow event log. Must be set off or on
SERVER_CONTACT[email protected]Contact email for server admin
VEGAN_MODEoffNo enemies
VEGETARIAN_MODEoffNo enemies during day time
RESET_HOLES_MODEoffReset all structure holes when loading a save
TREE_REGROW_MODEoffRegrow 10% of cut down trees when sleeping
ALLOW_BUILDING_DESTRUCTIONonAllow building destruction
ALLOW_ENEMIES_CREATIVE_MODEoffAllow enemies in creative games
ALLOW_CHEATSoffAllow clients to use the built in debug console
REALISTIC_PLAYER_DAMAGEoffUse full weapon damage values when attacking other players
TARGET_FPS_IDLE0Target FPS when no client is connected
TARGET_FPS_ACTIVE0Target FPS when there is at least one client connected
UPDATE_SERVERfalseForce a steam update of the game

⁠Volumes

  • /game location of game server files
  • /savesMultiplayer location of game saves

⁠Examples

Docker run:

docker run --rm \
  --name the-forest \
  -e SERVER_STEAM_ACCOUNT=XXXXXXXXXXXXX \
  -p 8766:8766/tcp \
  -p 8766:8766/udp \
  -p 27015:27015/tcp \
  -p 27015:27015/udp \
  -p 27016:27016/tcp \
  -p 27016:27016/udp \
  -v $PWD/game:/game \
  -v $PWD/saves:/savesMultiplayer \
  justmiles/the-forest:latest

Docker-Compose:

version: "3.7"
services:
  the-forest:
    container_name: justmiles/the-forest
    image: justmiles/the-forest:latest
    restart: always
    environment:
      SERVER_STEAM_ACCOUNT: XXXXXXXXXXXXX
    ports:
      - 8766:8766/tcp
      - 8766:8766/udp
      - 27015:27015/tcp
      - 27015:27015/udp
      - 27016:27016/tcp
      - 27016:27016/udp
    volumes:
      - ./saves:/savesMultiplayer
      - ./game:/game

Tag summary

Content type

Image

Digest

sha256:3343bd9b3…

Size

760.7 MB

Last updated

over 3 years ago

docker pull justmiles/the-forest