DockerServerConfig

@Serializable
data class DockerServerConfig(var address: String? = null, var image: String = "itzg/minecraft-server", var imagePullPolicy: ImagePullPolicy = IF_NOT_PRESENT, var autoStartOnCreate: Boolean = false, var portBindings: List<String> = listOf("25565:25565"), var hostPath: String = "unix:///var/run/docker.sock", var tlsConfig: DockerTlsConfig = DockerTlsConfig(), var volumes: List<String> = emptyList(), var env: Map<String, String> = mapOf("ONLINE_MODE" to "false"))

Configuration for a Docker server

This configuration is used when the server type is "docker".

Constructors

Link copied to clipboard
constructor(address: String? = null, image: String = "itzg/minecraft-server", imagePullPolicy: ImagePullPolicy = IF_NOT_PRESENT, autoStartOnCreate: Boolean = false, portBindings: List<String> = listOf("25565:25565"), hostPath: String = "unix:///var/run/docker.sock", tlsConfig: DockerTlsConfig = DockerTlsConfig(), volumes: List<String> = emptyList(), env: Map<String, String> = mapOf("ONLINE_MODE" to "false"))

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Map of environment variables to set in the container

Link copied to clipboard

Path to docker socket (accepts network sockets)

Link copied to clipboard

Docker image to use for the server

Link copied to clipboard
Link copied to clipboard

List of port mappings (i.e "25566:25565")

Link copied to clipboard
Link copied to clipboard

Volumes to mount into the container ("/host/path:/container/path")