Skip to content

Minecraft Docker Compose Container not working with docker mod #23

@colepez

Description

@colepez

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions