mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-23 07:27:20 +00:00
31 lines
950 B
YAML
31 lines
950 B
YAML
services:
|
|
minecraft-lce-dedicated-server:
|
|
image: ghcr.io/smartcmd/minecraft-lce-dedicated-server:nightly
|
|
container_name: minecraft-lce-dedicated-server
|
|
restart: unless-stopped
|
|
tty: true
|
|
stdin_open: true
|
|
environment:
|
|
TZ: ${TZ:-Etc/UTC}
|
|
WINEARCH: win64
|
|
WINEPREFIX: /var/opt/wineprefix64
|
|
WINEDEBUG: -all
|
|
# linux require use file stdin
|
|
SERVER_CLI_INPUT_MODE: ${SERVER_CLI_INPUT_MODE:-stream}
|
|
# minimum required virtual screen
|
|
XVFB_DISPLAY: ${XVFB_DISPLAY:-:99}
|
|
XVFB_SCREEN: ${XVFB_SCREEN:-720x1280x16}
|
|
# ip & port the server will run on
|
|
SERVER_BIND_IP: ${SERVER_BIND_IP:-0.0.0.0}
|
|
SERVER_PORT: ${SERVER_PORT:-25565}
|
|
volumes:
|
|
# - wineprefix64:/var/opt/wineprefix64
|
|
- ./server-data:/srv/persist
|
|
ports:
|
|
- "$SERVER_PORT:$SERVER_PORT/tcp"
|
|
- "$SERVER_PORT:$SERVER_PORT/udp"
|
|
stop_grace_period: 30s
|
|
|
|
# volumes:
|
|
# wineprefix64:
|