services:
minecraft:
image: itzg/minecraft-server
container_name: minecraft
user: 1000:1000
# In order to attach and interact with the Minecraft server make sure to enable TTY and keep stdin open.
tty: true
stdin_open: true
environment:
TZ: America/Denver
EULA: "true"
TYPE: FABRIC
VERSION: "1.21.11"
# FABRIC_INSTALLER_VERSION: 1.0.1
# FABRIC_LOADER_VERSION: 0.16.10
# Since Fabric server type only includes the loader, most times
# the fabric-api is required for other mods to function
MODRINTH_PROJECTS: |
fabric-api
multiworld
fastrtp
simple-voice-chat
enhanced-groups: fabric-1.21.11-1.7.1=beta
ENABLE_ROLLING_LOGS: "true"
MAX_MEMORY: 10G
MAX_BUILD_HEIGHT: 256
VIEW_DISTANCE: 15
LEVEL_TYPE: large_biomes
MAX_PLAYERS: 10
CONSOLE: "true"
USES_PLUGINS: "true"
ALLOW_FLIGHT: "true"
ENABLE_COMMAND_BLOCK: "true"
MOTD: "The XYZ Family\'s Creative Minecraft Server!!"
RCON_PASSWORD_FILE: /run/secrets/rcon_pass
FORCE_GAMEMODE: "true"
MODE: "creative"
OPS: | # From: https://docker-minecraft-server.readthedocs.io/en/latest/configuration/server-properties/#opadministrator-players
TUSER1
USER2
OP_PERMISSION_LEVEL: 2 # From https://stickypiston.co/account/knowledgebase/151/What-are-Minecraft-server-Operator-Levels.html
ports:
- "25565:25565"
- "24454:24454/udp" # Simple Voice Chat port
volumes:
- /opt/docker/minecraft/data:/data
- /opt/docker/minecraft/mods:/mods
- /opt/docker/minecraft/plugins:/plugins:ro
restart: always
secrets:
- rcon_pass
secrets:
rcon_pass:
file: /opt/docker/rcon_password # Local password file
services:
minecraft:
image: itzg/minecraft-server
container_name: minecraft
user: 1000:1000
# In order to attach and interact with the Minecraft server make sure to enable TTY and keep stdin open.
tty: true
stdin_open: true
environment:
TZ: America/Denver
EULA: "true"
TYPE: FABRIC
VERSION: "1.21.11"
# FABRIC_INSTALLER_VERSION: 1.0.1
# FABRIC_LOADER_VERSION: 0.16.10
# Since Fabric server type only includes the loader, most times
# the fabric-api is required for other mods to function
MODRINTH_PROJECTS: |
fabric-api
multiworld
fastrtp
simple-voice-chat
enhanced-groups: fabric-1.21.11-1.7.1=beta
ENABLE_ROLLING_LOGS: "true"
MAX_MEMORY: 10G
MAX_BUILD_HEIGHT: 256
VIEW_DISTANCE: 15
LEVEL_TYPE: large_biomes
MAX_PLAYERS: 10
CONSOLE: "true"
USES_PLUGINS: "true"
ALLOW_FLIGHT: "true"
ENABLE_COMMAND_BLOCK: "true"
MOTD: "The XYZ Family\'s Creative Minecraft Server!!"
RCON_PASSWORD_FILE: /run/secrets/rcon_pass
FORCE_GAMEMODE: "true"
MODE: "creative"
OPS: | # From: https://docker-minecraft-server.readthedocs.io/en/latest/configuration/server-properties/#opadministrator-players
TUSER1
USER2
OP_PERMISSION_LEVEL: 2 # From https://stickypiston.co/account/knowledgebase/151/What-are-Minecraft-server-Operator-Levels.html
ports:
- "25565:25565"
- "24454:24454/udp" # Simple Voice Chat port
volumes:
- /opt/docker/minecraft/data:/data
- /opt/docker/minecraft/mods:/mods
- /opt/docker/minecraft/plugins:/plugins:ro
restart: always
secrets:
- rcon_pass
secrets:
rcon_pass:
file: /opt/docker/rcon_password # Local password file