You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Minecraft Servers w/ [Lazymc](https://github.com/timvisee/lazymc) using Docker
6
+
5
7
This is a Linux Docker image for creating Minecraft servers with `lazymc`.
6
8
7
-
[lazymc](https://github.com/timvisee/lazymc) is a utility that puts your Minecraft server to rest when idle and wakes it up when players try to connect.
9
+
**Lazymc** is a utility that puts your Minecraft server to rest when idle and wakes it up when players try to connect.
8
10
This allows the server to not waste resources if nobody is connected.
9
11
10
12
This image provides a basic Minecraft server using one of the supported providers. All customizations are left to the user.
@@ -20,7 +22,7 @@ It is assumed that the user has already acquired a working Docker installation.
20
22
21
23
## Using docker run:
22
24
```bash
23
-
sudo docker run -p 25565:25565 -e CPU_ARCH="<your_cpu_arch>"okazakee/mcserver-lazymc-docker
25
+
sudo docker run -p 25565:25565 -e okazakee/mcserver-lazymc-docker
24
26
```
25
27
While this command will work just fine in many cases, it is only the bare minimum required to start a functional server and can be vastly improved by specifying more options/envs.
26
28
@@ -34,7 +36,6 @@ services:
34
36
- '<your-port>:25565'
35
37
container_name: <your-container-name>
36
38
environment:
37
-
- CPU_ARCH=<your-cpu-architecture>
38
39
- SERVER_PROVIDER=<your-server-provider>
39
40
- LAZYMC_VERSION=<your-lazymc-version>
40
41
- MC_VERSION=<your-mc-version>
@@ -80,18 +81,12 @@ There is one more command line option, but it is a bit special and deserves its
80
81
### Environment Variables
81
82
Environment variables are options that are specified in the format `-e <NAME>="<VALUE>"` where `<NAME>` is the name of the environment variable and `<VALUE>` is the value that the environment variable is being set to. Please note that setting an evironment variable with no value leaves the default value, which you can look up below.
82
83
83
-
Mandatory `ENV` fields will have a `*` after their name.
84
+
[comment]: <> (Mandatory `ENV` fields will have a `*` after their name.)
84
85
85
86
This image has seven environment variables:
86
-
- CPU Architecture *
87
-
- **Name:** `CPU_ARCH`
88
-
- Set this to the cpu architecture you want to use.
0 commit comments