update
This commit is contained in:
parent
a04604774d
commit
06b0b6e0d7
@ -1,6 +1,6 @@
|
||||
services:
|
||||
minecraft:
|
||||
image: chainguard/jre:latest
|
||||
image: openjdk:25-jdk-bookworm # 使用 JRE 版本的镜像
|
||||
container_name: minecraft-server
|
||||
working_dir: /mc-server
|
||||
environment:
|
||||
@ -8,7 +8,7 @@ services:
|
||||
volumes:
|
||||
- ${MC_DIR}:/mc-server
|
||||
command: >
|
||||
-jar ${JAR_FILE} nogui
|
||||
java -jar ${JAR_FILE} nogui
|
||||
ports:
|
||||
- "25565:25565"
|
||||
stdin_open: true
|
||||
|
Loading…
Reference in New Issue
Block a user