DESCRIPTION:
Running vanilla Terraria server using a Docker Compose in Portainer. Tshock hasn't quite caught up with current Terraria version but this Docker can switch to Tshock.
RESOURCES:
Docker: https://hub.docker.com/r/beardedio/terraria
PREREQUISITE:
A debian server running Portainer.
STEPS:
- Run Terraria server through Portainer with a Docker Compose:
Code
version: '2'
services:
terraria:
image: beardedio/terraria:vanilla-latest
ports:
- '7777:7777'
restart: unless-stopped
environment:
- world=MyWorld.wld
volumes:
- /srv/dev-disk-by-label-mydisk/appdata/terraria:/config
tty: true
stdin_open: true
Alles anzeigen
- If you don't know how to setup the directories and launch the Docker watch more videos from Techno Dad Life
- Change to version: '2' for portainer
- You'll have to generate a world on your PC using terrariaserver.exe then copy it over to your config(appdata) folder.
- You might have to reset permissions on your config(appdata) folder. Reset permissions is an omv-extras plugin.
- Ran into bug (version 1.4.0.5) where Terraria server ignores things in serverconfig.txt like password. Fix:
- Navigated inside Portainer -> Containers -> terraria -> Attach.
- Then type 'help' to see terraria server commands.
- type 'password mypassword' to set the password
- Note: this password will be lost next time your restart the Terraria server
- Detach
MANAGE SERVER:
To be able to kick, ban, and change the server settings while it's running you need to be able to access the Terraria server console. There are a couple ways to do this. You can connect to your OMV serve through Putty and type 'sudo docker attach name_of_your_terraria_docker' and then type 'help' to see a list of commands. Then to detach type Ctrl-p Ctrl-q.
An easier way to do this is through Portainer:
- Navigated inside Portainer -> Containers -> terraria -> Attach.
- Then type 'help' to see terraria server commands.
- When done click Detach button