docs: added Docker compose example

This commit is contained in:
Geoff Bourne committed 2019-08-25 13:27:33 -05:00
1 parent 0a4e456880
commit a4da57a8ab
2 files changed
+41

No files matched your search

+25
View File
@@ -77,6 +77,31 @@ in the "LAN Games" part of the "Friends" tab, such as:
![](docs/example-client.jpg)
## 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
- a volume to be attached to the service
The service configuration includes some examples of configuring the server properties via environment variables:
```yaml
environment:
EULA: "TRUE"
GAMEMODE: survival
DIFFICULTY: normal
```
From with in the `examples` directory, you can deploy the composition by using:
```bash
docker-compose up -d
```
You can follow the logs using:
```bash
docker-compose logs -f bds
```
## Deploying with Kubernetes
The [examples](examples) directory contains [an example Kubernetes manifest file](examples/kubernetes.yml) that declares: