Sign inSign up

unsafetypin/docker-terraria

By unsafetypin

•Updated about 3 years ago

Terraria Server linux - arm64 & amd64 for vanilla or tshock

Image
0

2.2K

unsafetypin/docker-terraria repository overview

⁠Dockerized Terraria⁠ Server

Project: https://gitlab.largenut.com/unsafetypin/docker-terraria⁠

Build Status

⁠Instructions

Set up two folders, one should be mounted to /world and contain your world files. The other should be mounted to /config and contain a single file: serverconfig.txt. This file is your server config file as described here⁠.

In your config file, make sure worldpath=/world and world=/world/<worldname>.wld. If you do not already have a world, you can use the autocreate option to make the server create the world.

If you do not have a serverconfig.txt file, the container will create one for you that autocreates a medium world called "Terraria."

Docker run command: docker run -itd --name=terraria -e PUID=<PROCESS UID> -e PGID=<PROCESS GID> -p 7777:7777 -v <PATH TO WORLDS>:/world -v <PATH TO CONFIG>:/config unsafetypin/docker-terraria

Modify and use the docker-compose.yml file, and run with docker-compose up -d.

Modify and use serverconfig.txt in place of the autogen config for a customized world.

⁠Docker-compose.yml
version: '3.6'

services:
  terraria:
    container_name: terraria
    image: unsafetypin/docker-teraria
    environment:
      - PUID=1000
      - PGID=1000
    restart: always
    stdin_open: true
    tty: true
    ports:
      - 7777:7777
    volumes:
      - CHANGE-THIS:/world
      - CHANGE-THIS:/config

Tag summary

Content type

Image

Digest

Size

201.8 MB

Last updated

over 4 years ago

docker pull unsafetypin/docker-terraria