minecraft-server

cezarmathe/minecraft-server/docker

Terraform Module HCL DOCKER

A Terraform module for deploying a Vanilla Minecraft Server. Uses itzg/minecraft-server.

Install
module "minecraft-server" {
source = "cezarmathe/minecraft-server/docker"
version = "0.2.1"
}
plain text: /constructs/tfmod-cezarmathe-minecraft-server-docker/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-docker-minecraft A Terraform module for deploying a Vanilla Minecraft Server. Uses [itzg/minecraft-server]. A note on the EULA of the Minecraft Server By deploying this, you accept the [Minecraft EULA]. [itzg/minecraft-server]: https://hub.docker.com/r/itzg/minecraft-server [Minecraft EULA]: https://www.minecraft.net/en-us/eula

Inputs (38)
NameTypeDescriptionDefault
server_propertiesstringContents of the 'server.properties' file. Leave empty for the default properties""
use_large_pagesboolLarge page support can also be enabled by setting this to 'true'.false
minecraft_versionstringMinecraft version to use. Please check container docs."LATEST"
gidnumberGid to run minecraft with.1000
image_versionstringContainer image version. This module uses 'itzg/minecraft-server'. "latest"
container_cpu_sharesnumberCpu shares to allow the container to use (<= 0 disables the setting).-1
rcon_ipstringIp to bind the minecraft rcon to."127.0.0.1"
autopause_timeout_initnumberTime between server start and the pausing of the process, when no client connect600
memory_initstringIndependently set the initial heap size.""
volume_namestringThe name of the data volume. If empty, a name will be automatically generated li""
container_memorynumberAmount of memory to allow the container to use (<= 0 disables the setting).-1
autopause_timeout_periodnumberPeriod of the daemonized state machine, that handles the pausing of the process 10
timezonestringTimezone."Europe/London"
proxystringConfigure the use of an HTTP/HTTPS proxy.""
container_memory_swapnumberTotal amount of memory (ram + swap) to allow the container to use (<= 0 disables-1
internal_server_portnumberInternal minecraft server port (must be the same as in 'server.properties').25565
autopause_timeout_knnumberTime between knocking of the port (e.g. by the main menu ping) and the pausing o120
labelsmap(string)Labels to attach to created resources that support labels.{}
external_server_portnumberExternal minecraft server port.25565
startboolWhether to start the container or just create it.true
Outputs (4)
this_network_data — Network data of the container.
this_uuid — Uuid used in the names of some of the resources.
this_container_name — Uuid used in the names of some of the resources.
this_volume_name — Uuid used in the names of some of the resources.
Resources (4)
docker_containerdocker_imagedocker_volumerandom_uuid
Details
FrameworkTerraform Module
LanguageHCL
Version0.2.1
Cloud DOCKER
★ Stars1
Forks1
Total downloads896
Inputs38
Outputs4
Resources4
LicenseMIT
Namespacecezarmathe
Updated