Upload Terraria server config and world file to an S3 Bucket:
Note the
data/
directory
data/
ββ serverconfig.txt
ββ World.wld
ββ World.wld.bak
Install Docker REX-Ray S3FS plugin on Docker host:
docker plugin install rexray/s3fs \
S3FS_ACCESSKEY=XXXXXX \
S3FS_SECRETKEY=XXXXXX
Run container using existing S3 bucket:
docker run -it --name terraria \
-p 7777:7777 \
-v bucketname:/etc/terraria:rw \
-v bucketname:/usr/terraria/worlds:rw \
-v bucketname:/var/log/terraria:rw \
fostertheweb/terraria