Run your own Terraria server using Docker on Linux or Raspberry Pi! This project containerizes a Terraria server with TShock version 1.4.4.9.
- ๐ณ Easy deployment with Docker
- ๐ Supports both x86 and ARM64 (Raspberry Pi) architectures
- ๐ก๏ธ Includes TShock for advanced server management
- ๐ Persistent world data with volume mapping
- Docker installed on your system
- Basic knowledge of Docker and command-line operations
-
Clone the repository:
git clone https://github.com/surdle/terraria-docker.git cd terraria-docker
-
Build the Docker image:
For x86 systems:
docker build -t terraria-docker:latest .
For ARM64 (Raspberry Pi):
docker build -f arm64/dockerfile -t terraria-docker:latest .
-
Run the Docker container:
docker run -it -p 7777:7777 -v /home/$USER/terraria:/data --name terraria-docker terraria-docker
-
Connect to your server in Terraria using your server's IP address and port 7777.
- The server configuration file is located at
/data/serverconfig.txt
inside the container. - World files are stored in the
/data
directory. - Modify these files to customize your server settings.
7777
- Default Terraria server port (TCP)
/data
- Contains world files, configuration, and logs
- If you encounter permission issues, ensure the
/home/$USER/terraria
directory has the correct permissions. - For networking issues, check your firewall settings and ensure port 7777 is open.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.
Happy crafting and exploring! If you find this project helpful, please give it a โญ๏ธ on GitHub!