minecraft: add no-new-privileges and only enable rcon when web is active
This commit is contained in:
parent
fd9616ddbc
commit
84aca4fd3b
1 changed files with 3 additions and 1 deletions
|
@ -29,9 +29,11 @@ services:
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ minecraft_data_location }}:/data"
|
- "{{ minecraft_data_location }}:/data"
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges
|
||||||
environment:
|
environment:
|
||||||
EULA: "TRUE"
|
EULA: "TRUE"
|
||||||
ENABLE_RCON: "true"
|
ENABLE_RCON: "{{ minecraft_enable_rcon_web | bool | lower }}"
|
||||||
RCON_PASSWORD: "{{ minecraft_rcon_password }}"
|
RCON_PASSWORD: "{{ minecraft_rcon_password }}"
|
||||||
RCON_PORT: 28016
|
RCON_PORT: 28016
|
||||||
# enable env variable replacement
|
# enable env variable replacement
|
||||||
|
|
Loading…
Add table
Reference in a new issue