2019-07-27 18:36:16 +02:00
|
|
|
services:
|
|
|
|
vanilla:
|
|
|
|
image: itzg/minecraft-server
|
|
|
|
environment:
|
|
|
|
EULA: "TRUE"
|
|
|
|
forge:
|
|
|
|
image: itzg/minecraft-server
|
|
|
|
environment:
|
|
|
|
EULA: "TRUE"
|
|
|
|
TYPE: FORGE
|
|
|
|
router:
|
2021-08-10 23:53:51 +02:00
|
|
|
image: ${MC_ROUTER_IMAGE:-itzg/mc-router}
|
2022-07-17 17:01:18 +02:00
|
|
|
depends_on:
|
|
|
|
- forge
|
|
|
|
- vanilla
|
2021-08-10 23:53:51 +02:00
|
|
|
environment:
|
|
|
|
# enable API
|
|
|
|
API_BINDING: ":25564"
|
2023-10-28 23:54:46 +02:00
|
|
|
DEBUG: true
|
|
|
|
MAPPING: |
|
|
|
|
vanilla.example.com=vanilla:25565
|
|
|
|
forge.example.com=forge:25565
|
2019-07-27 18:36:16 +02:00
|
|
|
ports:
|
2023-10-28 23:54:46 +02:00
|
|
|
- "25565:25565"
|
2021-08-10 23:53:51 +02:00
|
|
|
# bind the API port to only loopback to avoid external exposure
|
2023-10-28 23:54:46 +02:00
|
|
|
- "127.0.0.1:25564:25564"
|
2019-07-27 18:36:16 +02:00
|
|
|
|