Skip to content

Instantly share code, notes, and snippets.

@jcottrell
Last active July 13, 2022 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcottrell/2e5836eee22eea471ae8de299281d291 to your computer and use it in GitHub Desktop.
Save jcottrell/2e5836eee22eea471ae8de299281d291 to your computer and use it in GitHub Desktop.
Minecraft Bedrock on home wifi

Building a Minecraft server on your home wifi:

  1. Download Docker Desktop and run it on you computer
  2. Create a new directory on your computer and put the docker-compose.yml file in it (make sure the file name is docker-compose.yml). Note: use a text (only!) editor (like notepad) to fine tune the environment section with variables from Bedrock Edition server properties to customize your server further (make sure the names take the form described by the minecraft docker people, basically capital letters with underscore instead of dashes). You may also want to change the SERVER_NAME to something other than CottrellCraft.
  3. Open Cmd window or terminal window, navigate to the new directory you created in step 2, and run docker-compose up -d. Note: to stop it or delete it open up Docker Desktop and find minecraft under "Containers / Apps" and under "Volumes".
  4. Use your ipad-esque device, make sure it's connected to the same wifi as the computer running docker, open the official minecraft app, go to the Friends tab and look for "CottrellCraft" (or the name of your server, if you customized it in the docker-compose.yml file) under "LAN Games" and tap it.

Note: This creates an open-access minecraft server, only as secure as your wifi.

version: '3.4'
services:
cc1:
image: itzg/minecraft-bedrock-server
environment:
ALLOW_CHEATS: "true"
DEFAULT_PLAYER_PERMISSION_LEVEL: operator
DIFFICULTY: easy
EULA: "TRUE"
GAMEMODE: survival
MAX_PLAYERS: 5
ONLINE_MODE: "false"
SERVER_NAME: CottrellCraft
ports:
- 19132:19132/udp
volumes:
- bds:/data
stdin_open: true
tty: true
volumes:
bds: {}
@jcottrell
Copy link
Author

jcottrell commented Jul 13, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment