mirror of
https://github.com/itzg/mc-router.git
synced 2024-12-23 16:27:39 +01:00
27 lines
587 B
YAML
27 lines
587 B
YAML
version: '3.4'
|
|
|
|
services:
|
|
vanilla:
|
|
image: itzg/minecraft-server
|
|
environment:
|
|
EULA: "TRUE"
|
|
forge:
|
|
image: itzg/minecraft-server
|
|
environment:
|
|
EULA: "TRUE"
|
|
TYPE: FORGE
|
|
router:
|
|
image: ${MC_ROUTER_IMAGE:-itzg/mc-router}
|
|
depends_on:
|
|
- forge
|
|
- vanilla
|
|
environment:
|
|
# enable API
|
|
API_BINDING: ":25564"
|
|
ports:
|
|
- 25565:25565
|
|
# bind the API port to only loopback to avoid external exposure
|
|
- 127.0.0.1:25564:25564
|
|
command: --mapping=vanilla.example.com=vanilla:25565,forge.example.com=forge:25565
|
|
|