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"
}
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)
| Name | Type | Description | Default |
|---|---|---|---|
| server_properties | string | Contents of the 'server.properties' file. Leave empty for the default properties | "" |
| use_large_pages | bool | Large page support can also be enabled by setting this to 'true'. | false |
| minecraft_version | string | Minecraft version to use. Please check container docs. | "LATEST" |
| gid | number | Gid to run minecraft with. | 1000 |
| image_version | string | Container image version. This module uses 'itzg/minecraft-server'. | "latest" |
| container_cpu_shares | number | Cpu shares to allow the container to use (<= 0 disables the setting). | -1 |
| rcon_ip | string | Ip to bind the minecraft rcon to. | "127.0.0.1" |
| autopause_timeout_init | number | Time between server start and the pausing of the process, when no client connect | 600 |
| memory_init | string | Independently set the initial heap size. | "" |
| volume_name | string | The name of the data volume. If empty, a name will be automatically generated li | "" |
| container_memory | number | Amount of memory to allow the container to use (<= 0 disables the setting). | -1 |
| autopause_timeout_period | number | Period of the daemonized state machine, that handles the pausing of the process | 10 |
| timezone | string | Timezone. | "Europe/London" |
| proxy | string | Configure the use of an HTTP/HTTPS proxy. | "" |
| container_memory_swap | number | Total amount of memory (ram + swap) to allow the container to use (<= 0 disables | -1 |
| internal_server_port | number | Internal minecraft server port (must be the same as in 'server.properties'). | 25565 |
| autopause_timeout_kn | number | Time between knocking of the port (e.g. by the main menu ping) and the pausing o | 120 |
| labels | map(string) | Labels to attach to created resources that support labels. | {} |
| external_server_port | number | External minecraft server port. | 25565 |
| start | bool | Whether 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