ryansheehan / terraria

Dockerfile for terraria
MIT License
291 stars 104 forks source link

Plugins not loading #163

Open asumaray opened 6 months ago

asumaray commented 6 months ago

I've added some plugins and restarted the server, but the plugins are not being recognized. I've validated that the plugins exist in the host directory, but when I actually exec'd into the container and checked the ServerPlugins folder it did not appear that my plugins were copied over.

Relevant portion of my docker-compose:


terraria:
    container_name: terraria
    image: ryshe/terraria:latest
    stdin_open: true # docker run -i
    tty: true # docker run -t
    environment:
      - WORLD_FILENAME=2024.wld
    ports:
      - 7777:7777
    volumes:
      - /mediaserver/terraria/world:/root/.local/share/Terraria/Worlds
      - /mediaserver/terraria/ServerPlugins:/plugins
    restart: unless-stopped
SirMonkeyBoy commented 6 months ago

I don't think that's running TShock with is what I'm guessing your trying to use you need to use the image
ryshe/terraria:tshock-latest

asumaray commented 6 months ago

I was under the impression that it was the opposite and I would have to explicitly specify vanilla. I attached to the container and did /version and it appears to be Tshock:

Screenshot 2024-02-12 at 11 01 12 AM
SirMonkeyBoy commented 6 months ago

Ok I've just used the tshock image but if that's tshock then I'm not sure can you send your console logs

JoseFcoRosado commented 3 months ago

right bind to plugins is:

:/tshock/ServerPlugins
Zsongli commented 3 months ago

right bind to plugins is: :/tshock/ServerPlugins

Thank you, I had the exact same problem and this fix works, but the on Docker page it says:

Mount the plugins directory with an additional -v switch on your docker run ... command -v :/plugins

So I suggest you update the page in order to avoid any misunderstanding in the future.