Skip to content

Commit 3480ba8

Browse files
committed
feat: add Docker Compose files for Minecraft and K-Pop server setups
1 parent 0227e1b commit 3480ba8

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

quests/minecraft/compose.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Docker Compose file for running a Minecraft server
2+
# This file defines how to run the Minecraft server container
3+
4+
services: # List of services (containers) to run
5+
mc: # Name of the service - you can reference it with 'docker compose logs mc'
6+
image: itzg/minecraft-server # The Docker image to use from Docker Hub
7+
tty: true # Allocate a pseudo-TTY (allows interactive terminal)
8+
stdin_open: true # Keep STDIN open (allows you to type server commands)
9+
ports: # Maps ports from host machine to container
10+
- "25565:25566" # Format: "host_port:container_port"
11+
environment: # Environment variables passed to the container
12+
EULA: "FALSE" # Must be TRUE to accept Minecraft EULA
13+
TYPE: "VANILLA" # The type of Minecraft server (VANILLA, PAPER, FORGE, etc.)
14+
volumes: # Mount directories from host to container to persist data
15+
- ./data:/data # Stores world data, plugins, configs in ./data folder
16+
17+
# ==========================================
18+
# ERRORS TO FIX:
19+
# ==========================================
20+
# 1. The container port mapping is incorrect - Minecraft servers run on port 25565
21+
# inside the container, not 25566. Fix the ports section.
22+
#
23+
# 2. The EULA environment variable must be set to "TRUE" to accept the Minecraft
24+
# End User License Agreement, otherwise the server won't start.
25+
#
26+
# Once fixed, run: docker compose up -d
27+
# To view logs: docker compose logs -f mc
28+
# To stop: docker compose down
File renamed without changes.

0 commit comments

Comments
 (0)