Terraria Server linux - arm64 & amd64 for vanilla or tshock
2.2K
Project: https://gitlab.largenut.com/unsafetypin/docker-terraria
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.
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
Content type
Image
Digest
Size
201.8 MB
Last updated
over 4 years ago
docker pull unsafetypin/docker-terraria