Create a Minecraft Bedrock (IOS) server easily by using docker-compose.
Creating a docker-compose file to run your Minecraft server
-
Create file
1
sudo nano docker-compose.yml
-
Paste the following
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
version: '3.4' services: bds: image: itzg/minecraft-bedrock-server environment: EULA: "TRUE" TZ: "America/New_York" GAMEMODE: "survival" DIFFICULTY: "peaceful" ALLOW_CHEATS: "true" DEFAULT_PLAYER_PERMISSION_LEVEL: operator ONLINE_MODE: "false" restart: always ports: - 19132:19132/udp volumes: - ./data:/data stdin_open: true tty: true
-
Run container
1
sudo docker-compose up -d
-
Check container logs
1
sudo docker-compose logs
You should see similar log entries similar to this and server using port 19132.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Attaching to minecraft_bds_1 bds_1 | DEBU[0000] Using /data to match uid and gid bds_1 | DEBU[0000] Resolved UID=0 from match path bds_1 | DEBU[0000] Resolved GID=0 from match path bds_1 | Looking up latest version... bds_1 | Starting Bedrock server... bds_1 | NO LOG FILE! - setting up server logging... bds_1 | [2022-07-29 01:14:23:255 INFO] Starting Server bds_1 | [2022-07-29 01:14:23:255 INFO] Version 1.19.11.01 bds_1 | [2022-07-29 01:14:23:255 INFO] Session ID fca88b69-488a-42d9-b83e-ba913a8f962b bds_1 | [2022-07-29 01:14:23:256 INFO] Level Name: Bedrock level bds_1 | [2022-07-29 01:14:23:293 INFO] Game mode: 0 Survival bds_1 | [2022-07-29 01:14:23:293 INFO] Difficulty: 0 PEACEFUL bds_1 | [2022-07-29 01:14:25:350 INFO] opening worlds/Bedrock level/db bds_1 | [2022-07-29 01:14:30:831 INFO] IPv4 supported, port: 19132 bds_1 | [2022-07-29 01:14:30:831 INFO] IPv6 not supported bds_1 | [2022-07-29 01:14:31:262 INFO] Server started. bds_1 | [2022-07-29 01:14:31:281 INFO] IPv4 supported, port: 44505 bds_1 | [2022-07-29 01:14:31:281 INFO] IPv6 not supported bds_1 | [2022-07-29 01:14:32:312 INFO] ================ TELEMETRY MESSAGE =================== bds_1 | [2022-07-29 01:14:32:312 INFO] Server Telemetry is currently not enabled. bds_1 | [2022-07-29 01:14:32:312 INFO] Enabling this telemetry helps us improve the game. bds_1 | [2022-07-29 01:14:32:312 INFO] bds_1 | [2022-07-29 01:14:32:312 INFO] To enable this feature, add the line 'emit-server-telemetry=true' bds_1 | [2022-07-29 01:14:32:312 INFO] to the server.properties file in the handheld/src-server directory bds_1 | [2022-07-29 01:14:32:313 INFO] ======================================================