rxr_mc/docker-compose.yaml

18 lines
413 B
YAML
Raw Normal View History

2024-11-02 09:59:09 +00:00
services:
minecraft:
image: openjdk:21
container_name: minecraft-server
working_dir: /mc-server
environment:
- MAX_MEMORY=${MAX_MEMORY}
- MIN_MEMORY=${MIN_MEMORY}
2024-11-02 10:13:29 +00:00
- TZ=Asia/Shanghai
2024-11-02 09:59:09 +00:00
volumes:
- ${MC_DIR}:/mc-server
command: >
java -Xmx${MAX_MEMORY} -Xms${MIN_MEMORY} -jar ${JAR_FILE} nogui
ports:
- "25565:25565"
stdin_open: true
tty: true