tailscale-dev / docker-mod

The home for our universal Docker mod
BSD 3-Clause "New" or "Revised" License
63 stars 30 forks source link

Minecraft Docker Compose Container not working with docker mod #23

Open colepez opened 7 months ago

colepez commented 7 months ago

I am trying to use docker compose to host a minecraft server and I cannot get it to connect to tailscale. There are no errors from the logs and the minecraft server starts fine. Is there something wrong with my yaml?

version: "3.8"

services: mc: image: itzg/minecraft-server tty: true stdin_open: true ports:

volumes: minecraft-tailscale: data:

gmile commented 6 months ago

@colepez in short, it won't work. itzg/minecraft-server simply ignores DOCKER_MODS environment variable.

As described in the original introduction post (see: https://tailscale.dev/blog/docker-mod-tailscale), docker-mod is a concept introduced and supported by docker images built by linuxserver.io project.

A design document for docker-mod concept covers how the mods must be implemented, and convention used by images built by linuxserver.io to load the mods. itzg/minecraft-server, as seen in the Dockerfile, does not implement the concept of docker-mod.