Skip to content

Commit f46298c

Browse files
authored
Added compose example snippets for Paper docs (#3231)
1 parent a72fb19 commit f46298c

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ where, in this case, the standard server port 25565, will be exposed on your hos
1919

2020
!!! note
2121

22-
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](#using-docker-compose) or [Kubernetes](#deployment-templates-and-examples) to allow for incremental reconfiguration and image upgrades.
22+
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](#using-docker-compose) or [Kubernetes](misc/deployment/index.md#on-kubernetes) to allow for incremental reconfiguration and image upgrades.
2323

2424
!!! info
2525

docs/types-and-platforms/server-types/paper.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ To allow for the selection of experimental builds, set `PAPER_CHANNEL` to "exper
66

77
!!! example
88

9+
Using `docker run` command line
10+
911
```
1012
docker run ... -e TYPE=PAPER ...
1113

@@ -15,6 +17,26 @@ To allow for the selection of experimental builds, set `PAPER_CHANNEL` to "exper
1517

1618
docker run ... -e TYPE=PAPER -e PAPER_CHANNEL=experimental ...
1719
```
20+
21+
Using a compose file:
22+
23+
```yaml
24+
environment:
25+
TYPE: PAPER
26+
```
27+
28+
```yaml
29+
environment:
30+
TYPE: PAPER
31+
VERSION: 1.20.6
32+
PAPER_BUILD: 140
33+
```
34+
35+
```yaml
36+
environment:
37+
TYPE: PAPER
38+
PAPER_CHANNEL: experimental
39+
```
1840

1941
!!! tip
2042

0 commit comments

Comments
 (0)