This commit is contained in:
Mirror 2024-05-06 18:48:02 +03:00
parent 2e0059bb90
commit 6bac2b5b3e
3 changed files with 9 additions and 4 deletions

View File

@ -2,8 +2,9 @@ services:
minecraft:
build: .
volumes:
- data:/data
- ./data:/data
ports:
- "25565:25565"
volumes:
data:
#volumes:
# data:

View File

@ -23,6 +23,7 @@ if [ ! -f /app/.initialized ]; then
ln -s /data/crash-reports .
ln -s /data/local .
ln -s /data/visualprospecting .
ln -s /data/backups .
touch /app/.initialized
fi

View File

@ -1,2 +1,5 @@
#!/bin/sh
/app/prepare_environment.sh && java -Xms6G -Xmx6G -Dfml.readTimeout=180 @java9args.txt nogui
if /app/prepare_environment.sh; then
exec java -Xms6G -Xmx6G -Dfml.readTimeout=180 -Dfml.queryResult=confirm @java9args.txt nogui
fi