MCServerDocker/docker-compose.yml

20 lines
803 B
YAML
Raw Normal View History

2024-01-25 23:19:06 +01:00
version: "3.8"
services:
2024-01-26 01:29:22 +01:00
mcsd:
2024-01-25 23:19:06 +01:00
build: .
container_name: mcsd
restart: never
stop_grace_period: 120s
2024-01-25 23:19:06 +01:00
volumes:
- ./server:/data
environment:
- MCSD_ENFORCE_FRESH_CACHES=false # cleans all caches on startup, useful if you experience issues
- MCSD_FORCE_UPGRADE=true # updates all chunks to the latest version, if possible. will slow down startup time on upgrade but will significantly increase server performance during runtime
- MCSD_SAFEMODE=false # disables all datapacks
- MCSD_AUTO_RESTART=true # restarts the server automatically if it exists
2024-01-26 14:37:52 +01:00
- MCSD_CLEAN_LOGS=true # removes all log files on startup (restarts are not affected)
- MCSD_JAVA_VERSION=17 # available arw: 17, 11 and 8
2024-01-25 23:19:06 +01:00
ports:
- 25565:25565