mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-08-01 21:22:17 +00:00
24 lines
656 B
YAML
24 lines
656 B
YAML
services:
|
|
# copies seed/ into /data before mc starts, so the NanoLimbo setup takes its
|
|
# "settings.yml already exists" path instead of writing the template
|
|
seed:
|
|
restart: "no"
|
|
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
|
entrypoint: ["bash", "-c", "cp /seed/settings.yml /data/ && chown -R 1000:1000 /data"]
|
|
volumes:
|
|
- ./seed:/seed
|
|
- ./data:/data
|
|
|
|
mc:
|
|
restart: "no"
|
|
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
|
depends_on:
|
|
seed:
|
|
condition: service_completed_successfully
|
|
environment:
|
|
EULA: "TRUE"
|
|
TYPE: NANOLIMBO
|
|
SERVER_PORT: "25599"
|
|
volumes:
|
|
- ./data:/data
|