minecraft-server-docker-compose

Minecraft Server Using Docker Compose

Stars
26
Committers
2

Minecraft Server Using Docker Compose

The badge displayed on my repository indicates the status of the deployment verification workflow as executed on the latest commit to the main branch.

Passing: This means the most recent commit has successfully passed all deployment checks, confirming that the Docker Compose setup functions correctly as designed.

πŸ“™ The complete installation guide is available on my website.

πŸ’‘ For details on deploying the Minecraft Proxy, check out this link: Minecraft Server Proxy Using Docker Compose.

❗ Change variables in the .env to meet your requirements.

πŸ’‘ Note that the .env file and plugins folder should be in the same directory as minecraft-server-docker-compose.yml.

Create a network for your services before deploying the configuration using the command:

docker network create minecraft-server-network

Deploy Minecraft Server using Docker Compose:

docker compose -f minecraft-server-docker-compose.yml -p minecraft-server up -d

You can check the Minecraft Server status using the commands:

MINECRAFT_SERVER_CONTAINER=$(docker ps -aqf "name=minecraft-server-minecraft-server") \
&& docker exec -it $MINECRAFT_SERVER_CONTAINER mc-monitor status

Minecraft Servers Logs

You can check logs using the commands:

MINECRAFT_SERVER_CONTAINER=$(docker ps -aqf "name=minecraft-server-minecraft-server") \
&& docker logs $MINECRAFT_SERVER_CONTAINER

Minecraft Server Management

Apply new configuration after a change in the minecraft-server-docker-compose.yml or .env using the command:

docker compose -f minecraft-server-docker-compose.yml -p minecraft up -d

Connect to the Minecraft server command-line interface using the command:

MINECRAFT_SERVER_CONTAINER=$(docker ps -aqf "name=minecraft-server-minecraft-server") \
&& docker exec -i $MINECRAFT_SERVER_CONTAINER rcon-cli

Backups

The minecraft-server-data-backups folder, holding all server backups, will be automatically created in the same directory as minecraft-server-docker-compose.yml upon the server's initial startup.

Author

I’m Vladimir Mikhalev, the Docker Captain, but my friends can call me Valdemar.

🌐 My website with detailed IT guides 🎬 Follow me on YouTube 🐦 Follow me on Twitter 🎨 Follow me on Instagram 🧡 Follow me on Threads 🐘 Follow me on Mastodon 🧊 Follow me on Bluesky 🎸 Follow me on Facebook πŸŽ₯ Follow me on TikTok πŸ’» Follow me on LinkedIn 🐈 Follow me on GitHub

Communication

πŸ‘Ύ Chat with IT pros on Discord πŸ“§ Reach me at [email protected]

Give Thanks

πŸ’Ž Support on GitHub πŸ† Support on Patreon πŸ₯€ Support on BuyMeaCoffee πŸͺ Support on Ko-fi πŸ’– Support on PayPal

Badges
Extracted from project README
Deployment Verification