Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minecraft Docker Compose Container not working with docker mod #23

Open
colepez opened this issue Apr 25, 2024 · 1 comment
Open

Minecraft Docker Compose Container not working with docker mod #23

colepez opened this issue Apr 25, 2024 · 1 comment

Comments

@colepez
Copy link

colepez commented Apr 25, 2024

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:
- "25565:25565"
environment:
- EULA=true
- DOCKER_MODS=ghcr.io/tailscale-dev/docker-mod:main
- TAILSCALE_STATE_DIR=/var/lib/tailscale
- TAILSCALE_SERVE_MODE=https
- TAILSCALE_SERVE_PORT=80
- TAILSCALE_USE_SSH=1
- TAILSCALE_HOSTNAME=wiki
- TAILSCALE_AUTHKEY=(I removed this)

cap_add:
  - NET_ADMIN
  - NET_RAW
volumes:
  - data:/data
  - minecraft-tailscale:/var/lib/tailscale
restart: unless-stopped

volumes:
minecraft-tailscale:
data:

@gmile
Copy link

gmile commented May 22, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants