mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-21 06:22:40 +00:00
[mc] Add rcon to docker-compose.yml example
This commit is contained in:
1 parent
79eb164e90
commit
32b0737e70
1 file changed
+25
-12
@@ -1,14 +1,27 @@
|
|||||||
minecraft-server:
|
version: '3'
|
||||||
ports:
|
|
||||||
- "25565:25565"
|
|
||||||
|
|
||||||
environment:
|
services:
|
||||||
EULA: "TRUE"
|
minecraft:
|
||||||
|
image: itzg/minecraft-server
|
||||||
|
ports:
|
||||||
|
- "25565:25565"
|
||||||
|
volumes:
|
||||||
|
- "mc:/data"
|
||||||
|
environment:
|
||||||
|
EULA: "TRUE"
|
||||||
|
CONSOLE: "false"
|
||||||
|
ENABLE_RCON: "true"
|
||||||
|
RCON_PASSWORD: "testing"
|
||||||
|
RCON_PORT: 28016
|
||||||
|
restart: always
|
||||||
|
rcon:
|
||||||
|
image: itzg/rcon
|
||||||
|
ports:
|
||||||
|
- "4326:4326"
|
||||||
|
- "4327:4327"
|
||||||
|
volumes:
|
||||||
|
- "rcon:/opt/rcon-web-admin/db"
|
||||||
|
|
||||||
image: itzg/minecraft-server
|
volumes:
|
||||||
|
mc:
|
||||||
container_name: minecraft-server
|
rcon:
|
||||||
|
|
||||||
tty: true
|
|
||||||
stdin_open: true
|
|
||||||
restart: always
|
|
||||||
Reference in new issue
Block a user