mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-13 22:02:28 +00:00
28 lines
494 B
YAML
28 lines
494 B
YAML
version: '3'
|
|
# Other docker-compose examples in /examples
|
|
|
|
services:
|
|
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"
|
|
|
|
volumes:
|
|
mc:
|
|
rcon:
|