|
1 | 1 | # docker-levilamina-server |
2 | 2 |
|
3 | | -English | [简体中文](https://lamina.levimc.org/zh/user_guides/install_on_docker/) |
4 | | - |
5 | | -A docker image that provides a LeviLamina server that will automatically download selected version at startup |
6 | | - |
7 | | -## Usage |
8 | | - |
9 | | -To start the server in a Linux container, run the following command: |
10 | | - |
11 | | -```sh |
12 | | -docker run -d -it -e EULA=TRUE -p 19132:19132/udp -v levilamina-server-data:/data ghcr.io/liteldev/levilamina-server:latest-wine |
13 | | -``` |
14 | | - |
15 | | -Or, if you want to use a Windows container, run the following command: |
16 | | - |
17 | | -```sh |
18 | | -docker run -d -it -e EULA=TRUE -p 19132:19132/udp -v levilamina-server-data:C:\data ghcr.io/liteldev/levilamina-server:latest-windows |
19 | | -``` |
20 | | - |
21 | | -We also provide Docker Compose files for both Linux and Windows containers at [wine/compose.yaml](wine/compose.yaml) and [windows/compose.yaml](windows/compose.yaml) respectively. To use them, download the file to an empty directory and run `docker compose up -d`. |
22 | | - |
23 | | -### Environment variables |
24 | | - |
25 | | -- `EULA`: must be set to `TRUE` to accept the [Minecraft End User License Agreement](https://minecraft.net/terms). |
26 | | - |
27 | | -- `GITHUB_MIRROR_URL`: can be set to a GitHub mirror URL to speed up the installation of LeviLamina. This is useful when you are behind a firewall or in a country with slow internet connection. |
28 | | - |
29 | | -- `GO_MODULE_PROXY_URL`: can be set to a Go module proxy URL to speed up the installation of LeviLamina. This is useful when you are behind a firewall or in a country with slow internet connection. |
30 | | - |
31 | | -- `PACKAGES`: can be set to a space-separated list of packages to install on first run. Each package must be a valid [lip specifier](https://lip.levimc.org/zh/user-guide/commands/lip-install/). Both local and remote lip teeth are supported. For local packages, you may need to mount the packages to the container. |
32 | | - |
33 | | -- `VERSION` (`LATEST`): can be set to a specific [LeviLamina](https://github.com/LiteLDev/LeviLamina/tags) version or `LATEST` to automatically download the latest version. |
34 | | - |
35 | | -- `WINEDEBUG` (`-all`): can be set to customize the Wine debug output. See [Wine Debugging](https://wiki.winehq.org/Debugging) for more information. |
36 | | - |
37 | | -- `LANG`: can be set to customize the locale used in the container. Default is `en_US.UTF-8`. |
38 | | - |
39 | | -- `LC_ALL`: can be set to customize the locale used in the container. Default is `en_US.UTF-8`. |
40 | | - |
41 | | -- `TZ`: can be set to customize the timezone used in the container. Default is `UTC`. |
| 3 | +For guidance, please refer to: https://lamina.levimc.org/user_guides/install_on_docker/ |
0 commit comments