This commit is contained in:
Zengtudor 2024-12-29 16:57:41 +08:00
parent af687fea78
commit d6b8daaea7

View File

@ -1,6 +1,6 @@
services: services:
minecraft: minecraft:
image: ubuntu/jre:17_edge image: chainguard/jre:latest
container_name: minecraft-server container_name: minecraft-server
working_dir: /mc-server working_dir: /mc-server
environment: environment:
@ -8,7 +8,7 @@ services:
volumes: volumes:
- ${MC_DIR}:/mc-server - ${MC_DIR}:/mc-server
command: > command: >
-jar ${JAR_FILE} nogui java -jar ${JAR_FILE} nogui
ports: ports:
- "25565:25565" - "25565:25565"
stdin_open: true stdin_open: true