This is a docker implementation of Bds Core with a REST API for server control.
- MacOS and Windows docker users is already installed by default in Docker Desktop.
version: "3.9"
volumes:
server_storage:
services:
bdscore:
image: ghcr.io/the-bds-maneger/container:latest
volumes:
- server_storage:/data
environment:
# Server Settings
DESCRIPTION: "My Sample Server"
WORLD_NAME: "My Map"
GAMEMODE: "survival"
DIFFICULTY: "normal"
MAXPLAYERS: "5"
REQUIRED_LOGIN: "false"
# Bds Core Settings
VERSION: "latest"
PLATFORM: "bedrock"
ports:
# Port to API
- 3000:3000/tcp
# Server Port to bedrock
- 19132:19132/udp
- 19133:19133/udp
# Server Port to java
- 25565:25565/tcp
- 25565:25565/udp
create Docker volume: docker volume create --driver local --name bds_server_storage
.
run image:
docker run --rm -d \
--name=bdscore \
-v bds_server_storage:/data \
-p 25565:25565/udp \
-p 25565:25565/tcp \
-p 19132:19132/udp \
-p 19133:19133/udp \
-p 3000:3000/tcp \
-e DESCRIPTION="My Sample Server" \
-e WORLD_NAME="My Map" \
-e GAMEMODE="survival" \
-e DIFFICULTY="normal" \
-e MAXPLAYERS="5" \
-e REQUIRED_LOGIN="false" \
-e VERSION="latest" \
-e PLATFORM="bedrock" \
ghcr.io/the-bds-maneger/container:latest
Get log: docker logs bdscore
.