Expose and document IPv6 port 19133 by default (#626)
This commit is contained in:
1 parent
86c278f32f
commit
09b8859600
6 files changed
+31
-7
No files matched your search
@@ -7,12 +7,18 @@
|
||||
## Quickstart
|
||||
|
||||
The following starts a Bedrock Dedicated Server running a default version and
|
||||
exposing the default UDP port:
|
||||
exposing the default IPv4 UDP port:
|
||||
|
||||
```bash
|
||||
docker run -d -it -e EULA=TRUE -p 19132:19132/udp -v mc-bedrock-data:/data itzg/minecraft-bedrock-server
|
||||
```
|
||||
|
||||
If your network is dual-stack (IPv4 and IPv6), also map the IPv6 port:
|
||||
|
||||
```bash
|
||||
-p 19132:19132/udp -p 19133:19133/udp
|
||||
```
|
||||
|
||||
> **NOTE**: if you plan on running a server for a longer amount of time it is highly recommended using a management layer such as [Docker Compose](#deploying-with-docker-compose) or [Kubernetes](#deploying-with-kubernetes) to allow for incremental reconfiguration and image upgrades.
|
||||
|
||||
## Upgrading to the latest Bedrock server version
|
||||
@@ -148,8 +154,10 @@ docker run -d -it --name bds-flat-creative \
|
||||
|
||||
## Exposed Ports
|
||||
|
||||
- **UDP** 19132 : the Bedrock server port on IPv4 set by `SERVER_PORT`. The IPv6 port is not exposed by default.
|
||||
**NOTE** that you must append `/udp` when exposing the port, such as `-p 19132:19132/udp` and both IPv4 and IPv6 must be enabled on your host machine.
|
||||
- **UDP** 19132 : the Bedrock server port for IPv4 clients, set by `SERVER_PORT`
|
||||
- **UDP** 19133 : the Bedrock server port for IPv6 clients, set by `SERVER_PORT_V6`
|
||||
|
||||
**NOTE** that you must append `/udp` when exposing the ports, such as `-p 19132:19132/udp -p 19133:19133/udp`.
|
||||
|
||||
## Volumes
|
||||
|
||||
@@ -335,7 +343,7 @@ When finished, detach from the server console using Ctrl-p, Ctrl-q
|
||||
## Deploying with Docker Compose
|
||||
|
||||
The [examples](examples) directory contains [an example Docker compose file](examples/docker-compose.yml) that declares:
|
||||
- a service running the bedrock server container and exposing UDP port 19132. In the example is named "bds", short for "Bedrock Dedicated Server", but you can name the service whatever you want
|
||||
- a service running the bedrock server container and exposing UDP ports 19132 (IPv4) and 19133 (IPv6). In the example is named "bds", short for "Bedrock Dedicated Server", but you can name the service whatever you want
|
||||
- a volume attached to the service at the container path `/data`
|
||||
|
||||
```yaml
|
||||
@@ -346,6 +354,7 @@ services:
|
||||
EULA: "TRUE"
|
||||
ports:
|
||||
- "19132:19132/udp"
|
||||
- "19133:19133/udp"
|
||||
volumes:
|
||||
- ./data:/data
|
||||
stdin_open: true
|
||||
|
||||
Reference in new issue
Block a user