Created
January 19, 2022 15:08
-
-
Save 0xBADDCAFE/e606ff4feb7126b5f91aeb4ebab1f1fd to your computer and use it in GitHub Desktop.
docker compose file for spigot server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
to launch and attach mc console