Skip to content

Instantly share code, notes, and snippets.

@0xBADDCAFE
Created January 19, 2022 15:08
Show Gist options
  • Save 0xBADDCAFE/e606ff4feb7126b5f91aeb4ebab1f1fd to your computer and use it in GitHub Desktop.
Save 0xBADDCAFE/e606ff4feb7126b5f91aeb4ebab1f1fd to your computer and use it in GitHub Desktop.
docker compose file for spigot server
version: "3.8"
services:
mc:
image: itzg/minecraft-server:java16
ports:
# expose the Minecraft server port outside of container
- 25565:25565
- 8123:8123
environment:
# REQUIRED for all types
EULA: "TRUE"
MEMORY: 2G
TZ: Asia/Tokyo
ENABLE_RCON: "false"
# Set server type (vs the default of vanilla)
TYPE: SPIGOT
VERSION: 1.17
# dynmap.274
# SPIGET_RESOURCES: 274
volumes:
# use a named, managed volume for data volume
- ./volume:/data
- ./plugins:/plugins:ro
tty: true
stdin_open: true
@0xBADDCAFE
Copy link
Author

docker-compose up -d && docker attach spigot-1_17_mc_1

to launch and attach mc console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment