mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-02-19 15:56:24 +00:00
26 lines
777 B
YAML
26 lines
777 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 API key from https://console.curseforge.com/
|
|
# and set in .env file making sure to double up dollar signs, such as
|
|
# CF_API_KEY=$$2a$$10$$....
|
|
# Refer to https://docker-minecraft-server.readthedocs.io/en/latest/types-and-platforms/mod-platforms/auto-curseforge/#api-key
|
|
CF_API_KEY: ${CF_API_KEY}
|
|
CF_SLUG: craftoria
|
|
MEMORY: 8G
|
|
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:
|