Files
cloud-minecraft/templates/opt/minecraft/docker-compose.yml.j2
T
lhahnandClaude Opus 5.5 7e2cc273a0 Initial minecraft role
Paper/Java via itzg/minecraft-server in docker compose; whitelist and ops synchronized from Ansible, RCON on localhost only, explicit EULA flag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 17:57:12 +02:00

17 lines
422 B
Django/Jinja

name: minecraft
services:
server:
image: {{ minecraft_image }}:{{ minecraft_image_tag }}
restart: unless-stopped
env_file:
- .env
ports:
- "{{ minecraft_port }}:25565"
- "127.0.0.1:{{ minecraft_rcon_port }}:25575"
volumes:
- {{ minecraft_data_location }}:/data
# give the server time to save the world on stop
stop_grace_period: 60s
tty: true
stdin_open: true