From 0d09d2e0ef28d1af6fe6fcc2b57ca0b11382d30b Mon Sep 17 00:00:00 2001 From: Gabriel Peralta Date: Mon, 24 Nov 2025 14:45:52 -0300 Subject: [PATCH] Add Docker Compose configuration for Terraria server --- templates/compose/terraria-server.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 templates/compose/terraria-server.yaml diff --git a/templates/compose/terraria-server.yaml b/templates/compose/terraria-server.yaml new file mode 100644 index 000000000..c2b89c4e7 --- /dev/null +++ b/templates/compose/terraria-server.yaml @@ -0,0 +1,26 @@ +# documentation: https://github.com/hexlo/terraria-server-docker +# slogan: Docker multi-arch Image for Terraria Server. +# category: games +# tags: terraria +# logo: svgs/terraria.svg +# port: 7777 + +services: + terraria-server: + image: 'hexlo/terraria-server-docker:latest' + stdin_open: true + tty: true + ports: + - '7777:7777' + volumes: + - 'terraria-server:/root/.local/share/Terraria/Worlds' + environment: + - 'WORLD=${WORLD:-/root/.local/share/Terraria/Worlds/world1.wld}' + - 'AUTOCREATE=${AUTOCREATE:-2}' + - 'WORLDNAME=${WORLDNAME:-world1}' + - 'DIFFICULTY=${DIFFICULTY:-1}' + - 'MAXPLAYERS=${MAXPLAYERS:-8}' + - 'PASSWORD=${PASSWORD:-mypassword}' + - 'MOTD=${MOTD:-Welcome to the server!}' + - 'LANGUAGE=${LANGUAGE:-en/US}' + - 'SECURE=${SECURE:-1}'