Build a Minecraft Server with Docker Compose

  Рет қаралды 15,021

Jared McDonald

Jared McDonald

Күн бұрын

Taking a base Ubuntu server and installing docker, docker compose, and starting a minecraft server all from scratch.
Check out my Linux docs site: jdogg.club/
Use my docker-compose file: gitlab.com/jar...

Пікірлер: 25
@gavinearls2935
@gavinearls2935 2 жыл бұрын
I really like how you go through things simply and easy to understand, would love a short follow up with opening up this server to make it accessible for e.g your discord friends
@reillyodonnell4276
@reillyodonnell4276 Жыл бұрын
Your router is given a public IP address by your Internet Service Provider (ISP) to connect you to the internet. By default your router is secure and doesn't let random things connect to your devices. So even if someone gets your router's IP address they can't access your devices. Obvi in MC we need to allow your friends to connect to your computer running the server. To allow outside connections computers have these things called ports (there are 65535 of these for every computer) & by default they are closed! So we need to do 2 things: 1. Decide which port we want our friends to use when accessing our public IP on our router (let's use the default MC port 25565) and 2. The port we want to open up on your computer running the Docker container/ MC server. To make it easy let's also use 25565. (note you will also need to specify which computer you want to this port to be open on. Be sure it's the one running the Docker container.) This is the basic idea of Port Forwarding. Now in plain English we are telling our router - when you get a connection to Port 25565 forward it to the computer running the MC server at the same port. Now your friends can connect!
@McDinoh
@McDinoh 2 жыл бұрын
If I have been running Java Edition/LAN from my desktop, do I just copy the ./minecraft folder to the volume or is there another way to get our current game to the docker server?
@ezalb9893
@ezalb9893 Жыл бұрын
nice tutorial! Just one question, how can i acces the minecraft console thath is running in docker?
@JaredMcDonald-CS
@JaredMcDonald-CS Жыл бұрын
You can run "docker exec -it {container_name} /bin/bash" and from there I believe you would run `rcon-cli "command"`
@sanvi4236
@sanvi4236 Жыл бұрын
would the process vary at all if i wanted to host multiple servers using this same image on the same box? (aside from different external port mappings)
@jankjetil6455
@jankjetil6455 2 жыл бұрын
Hi Jared great video wish i found this one before i alredy run a minecraft server in docker without docker-compose is it posible to add compose.yml on a running container best regards Jan
@fuzzycognition
@fuzzycognition Жыл бұрын
Amazing guide! Got it working. One last thing, can someone point me to commands like setting OP? I can’t figure it out.
@fuzzycognition
@fuzzycognition Жыл бұрын
Answering my own question, I had to edit the ops.json file 😅
@Stardust_Hero
@Stardust_Hero 2 жыл бұрын
Hey, i just finish to set up everything for the server but even if i set up the ONLINE_MODE=FALSE it still doesn't work because it says: " Failed to verify username". Have any recommendation?
@hispanicsanic5584
@hispanicsanic5584 Жыл бұрын
great video! thank you :)
@therealblujuice
@therealblujuice 2 жыл бұрын
Unfortunately was a bit overwhelming for me for a simple machine to just run a minecraft server. Decided to use pufferpanel and worked straight away.
@JaredMcDonald-CS
@JaredMcDonald-CS 2 жыл бұрын
Noted and appreciate the feedback. My content is usually heavily technical but I may need to adjust when making similar content. Glad you found a good solution for your usage!
@zacurcordovamesina5056
@zacurcordovamesina5056 Жыл бұрын
¿Cómo cambio a un jugar de modo supervivencia a modo creativo en la consola de linux? ¿Cuál sería la línea de código a escribir?
@JaredMcDonald-CS
@JaredMcDonald-CS Жыл бұрын
Mi Espanol es no bueno. En minecraft tu usa RCON para configuracion "/gamemode creative" o tu usa docker-compose yaml "environment: MODE: creative"
@Bardum22
@Bardum22 Жыл бұрын
does anyone know how to change settings in this like the tics max players and all fun stuff
@reillyodonnell4276
@reillyodonnell4276 Жыл бұрын
2 steps: 1. docker ps (to find out the name of the container. In the vid his is user_mc_1) 2. docker exec -i mc rcon-cli (replace mc with the name of the container from step 1) Now you can do all the fun commands like "whitelist on" etc.
@FL_Cordis
@FL_Cordis Жыл бұрын
Just need to know how to my friends can connect.
@samhernandez2359
@samhernandez2359 Жыл бұрын
If you want to allow others to join outside of your local network, you’ll either need to port forward which I wouldn’t suggest if you don’t know what you’re doing, or opt in to a VPS like DigitalOcean or Linode
@pegaggio
@pegaggio 2 жыл бұрын
is this free
@trufflepig2578
@trufflepig2578 2 жыл бұрын
Can I borrow some money?
@notkirb_
@notkirb_ 2 жыл бұрын
it depends on how you host it... if you are localhosting then it will be included in your electricity bill. if cloud hosting, it depends on what cloud host you use. i personally use oci's always free plan and it is plenty for my server.
@McDinoh
@McDinoh 2 жыл бұрын
@@notkirb_ OCI - ???
@notkirb_
@notkirb_ 2 жыл бұрын
@@McDinoh oracle cloud infrastructure
Mom had to stand up for the whole family!❤️😍😁
00:39
Это было очень близко...
00:10
Аришнев
Рет қаралды 5 МЛН
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 89 МЛН
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 77 МЛН
Building the ULTIMATE Minecraft Server
18:07
Linus Tech Tips
Рет қаралды 3,8 МЛН
How I Lost $1,000,000 On A Minecraft Server...
15:09
Tubbo
Рет қаралды 1 МЛН
Ultimate Linux Minecraft Server: Step-by-Step Guide!
28:32
LinuxBTW
Рет қаралды 13 М.
Turn Your Old PC Into a Minecraft Server for FREE with MineOS!
12:02
Docker - Полный курс Docker Для Начинающих [3 ЧАСА]
3:01:51
Docker Для Начинающих за 1 Час | Docker с Нуля
52:43
How to Set up a Dedicated Home Minecraft Server
8:52
Danny Lu
Рет қаралды 187 М.
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 172 М.
Mom had to stand up for the whole family!❤️😍😁
00:39