docker-minecraft-server/examples/docker-compose-ngrok.yml
2024-12-03 11:31:36 -06:00

23 lines
No EOL
486 B
YAML

services:
mc:
image: itzg/minecraft-server
tty: true
stdin_open: true
ports:
- "25565:25565"
environment:
EULA: "TRUE"
restart: unless-stopped
volumes:
# attach the relative directory 'data' to the container's /data path
- ./data:/data
ngrok:
image: ngrok/ngrok:latest
command:
- "tcp"
- "mc:25565"
environment:
NGROK_AUTHTOKEN: <YourAuthTokenHere>
ports:
- 4551:4551