mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-02-17 07:03:57 +00:00
docs: clarify placeholder intro (#2488)
This commit is contained in:
@@ -6,9 +6,9 @@ If you prefer to manually manage the `server.properties` file, set `OVERRIDE_SER
|
|||||||
|
|
||||||
## Placeholders
|
## Placeholders
|
||||||
|
|
||||||
Any of the server properties mapped from the environment variables [below](#properties), may contain placeholders that are replaced when the `server.properties` file is updated. The syntax of placeholders is DOS-style, `%VAR%` to avoid being processed by Docker or the shell.
|
When declaring a server properties via container environment variables, those values may contain placeholders that are processed when the `server.properties` file is updated.
|
||||||
|
|
||||||
The following options are available for placeholders:
|
The syntax of placeholders is DOS-style, `%VAR%`, to avoid being processed by Docker or the shell and the following options are available:
|
||||||
|
|
||||||
`%VAR%`
|
`%VAR%`
|
||||||
|
|
||||||
@@ -33,6 +33,10 @@ Any declared or resolved environment variable may be referenced, such as `VERSIO
|
|||||||
LEVEL: world-%date:yyyy-MM-dd%
|
LEVEL: world-%date:yyyy-MM-dd%
|
||||||
```
|
```
|
||||||
|
|
||||||
|
!!! warning
|
||||||
|
|
||||||
|
Placeholders are not supported when manually managing `server.properties`
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
### Message of the Day
|
### Message of the Day
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: mc
|
- name: mc
|
||||||
image: itzg/minecraft-server
|
image: itzg/minecraft-server
|
||||||
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
- name: EULA
|
- name: EULA
|
||||||
value: "TRUE"
|
value: "TRUE"
|
||||||
|
|||||||
Reference in New Issue
Block a user