{"id":29995287,"url":"https://github.com/mrdaemon/terraria-container","last_synced_at":"2025-08-05T01:35:40.298Z","repository":{"id":46970150,"uuid":"195698490","full_name":"mrdaemon/terraria-container","owner":"mrdaemon","description":"A hopefully reasonable Terraria server in a Docker container","archived":false,"fork":false,"pushed_at":"2023-01-28T18:24:11.000Z","size":24,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-11T14:25:07.135Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrdaemon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-07T21:26:03.000Z","updated_at":"2023-01-28T18:21:26.000Z","dependencies_parsed_at":"2023-02-15T18:16:02.890Z","dependency_job_id":null,"html_url":"https://github.com/mrdaemon/terraria-container","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/mrdaemon/terraria-container","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrdaemon%2Fterraria-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrdaemon%2Fterraria-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrdaemon%2Fterraria-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrdaemon%2Fterraria-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrdaemon","download_url":"https://codeload.github.com/mrdaemon/terraria-container/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrdaemon%2Fterraria-container/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268820426,"owners_count":24312379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-05T01:35:39.580Z","updated_at":"2025-08-05T01:35:40.286Z","avatar_url":"https://github.com/mrdaemon.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Terraria Container\n==================\n\n[![Image Build](https://github.com/mrdaemon/terraria-container/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/mrdaemon/terraria-container/actions/workflows/main.yml)\n\nA hopefully reasonable Terraria server instance in a Docker Container\n\nWhat is This\n------------\n\nIt's an instance of the Terraria standalone server in a Docker container for\nlinux.\n\nBut Why?\n--------\n\nGame servers are ephemeral enough to be well suited to the purpose.\nAlso I have a big swarm where I can just shuffle game servers around.\n\nWhat was wrong with the existing ones?\n--------------------------------------\n\nNothing really, it's just yet another container image made by some asshole\non the internet who thought he knew better.\n\nIt runs under a host provided uid, uses an intermediate build image as to not\npollute the final image with bloated setup dependencies, and keeps all its\nconfig and state files on a single volume, which is what I usually want\nfrom a container image.\n\nCan I use this?\n---------------\n\nIf you want, but I can't guarantee the absence of russian backdoors, as\nwith every Docker image. Feel free to fork or audit this, however.\n\nIs there tshock? Can you put it in?\n-----------------------------------\n\nNot at this time, but eventually yes. I'm still considering whether to make\nhybrid images or separate variants.\n\nQuickstart\n==========\n\nFor the impatient, here is a replacement for documentation.\n\nQuick Test\n----------\n\n1. Put your current uid in the `docker-compose.yml` file\n2. Put the full path to the `testvolume` directory in the `docker-compose.yml` file\n3. `$ docker-compose up --build`\n4. See on screen instructions and files under the `testvolume` directory\n\n\nProduction\n----------\n\n1. Create a user and group to use as a service account on the docker host, note the uid and gid. It can be a system user if you'd like (ex: 999:999)\n2. Create a directory tree somewhere on the host to hold the game data and configuration, e.g: `mkdir -p /srv/terraria`\n3. (optional) Place your existing `serverconfig.txt` file in the root of the directory, and your `.wld` world files under `worlds/`.\n4. Edit the server configuration file to match the new paths. The directory on the host is mounted under `/data`, so in the above example, an example path would be `/data/worlds/world1.wld`.\n5. Change ownership and permissions on this directory tree on the host to match the service account and group you've created in step 1\n6. Run the container with `--user 999:999` where the uid and gid are the ones of the service account and group, and use a volume mount for the data directory on `/data`\n\nOn first run, the container will generate an example configuration which you can edit and rename to `serverconfig.txt`.\n\nMake sure the paths (all starting with `/data`) are correct, especially the world path and world dir.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrdaemon%2Fterraria-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrdaemon%2Fterraria-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrdaemon%2Fterraria-container/lists"}