mirror of
https://github.com/itzg/docker-minecraft-server
synced 2025-01-25 10:15:02 +00:00
35 lines
738 B
YAML
35 lines
738 B
YAML
|
services:
|
||
|
mc:
|
||
|
image: itzg/minecraft-server
|
||
|
tty: true
|
||
|
stdin_open: true
|
||
|
ports:
|
||
|
- "25565:25565"
|
||
|
environment:
|
||
|
EULA: true
|
||
|
ALLOW_FLIGHT: true
|
||
|
MOD_PLATFORM: AUTO_CURSEFORGE
|
||
|
# allocate from https://console.curseforge.com/ and set in .env file
|
||
|
CF_API_KEY: ${CF_API_KEY}
|
||
|
CF_SLUG: craftoria
|
||
|
MEMORY: 8G
|
||
|
CF_EXCLUDE_MODS: |
|
||
|
737481
|
||
|
363363
|
||
|
394468
|
||
|
986380
|
||
|
844662
|
||
|
568563
|
||
|
915902
|
||
|
690971
|
||
|
455508
|
||
|
1089803
|
||
|
511319
|
||
|
volumes:
|
||
|
# Use managed volume by default, but can change to a relative path like
|
||
|
# ./data:/data
|
||
|
# to use a host directory
|
||
|
- mc-data:/data
|
||
|
volumes:
|
||
|
mc-data:
|