This commit is contained in:
Didier Slof 2023-01-22 15:23:43 +01:00
parent ab43b6244b
commit 8533d4772d
Signed by: didier
GPG key ID: 01E71F18AA4398E5
3 changed files with 30 additions and 5 deletions

3
custom/hopper/Dockerfile Normal file
View file

@ -0,0 +1,3 @@
FROM ghcr.io/bra1l0r/hopper-rs
COPY config.toml config.toml

10
custom/hopper/config.toml Normal file
View file

@ -0,0 +1,10 @@
# the address hopper will listen on
listen = "0.0.0.0:25565"
[routing]
default = { ip = "smpxmc:25565" } # optional
[routing.routes]
"mc.ixvd.net" = { ip = "smpxmc:25565" } # hostnames are supported too!
"kasmc.neo.ixvd.net" = { ip = "kasmc:25565" }
"sb3.neo.ixvd.net" = { ip = "stoneblock3:25565"}

View file

@ -1,6 +1,17 @@
version: '2.2'
networks:
minecraft:
services:
hopper:
build:
context: custom/hopper
ports:
- 25565:25565
networks:
- minecraft
smpxmc:
image: itzg/minecraft-server
container_name: smpxmc
@ -19,11 +30,10 @@ services:
TYPE: "PAPER"
VERSION: "1.19.3"
restart: always
ports: # 280** and 25565 is allocated to SMPXMC
- "25565:25565"
#- "28016:28016" # Rcon
volumes:
- /srv/smpxmc/data:/data
networks:
- minecraft
kasmc:
image: itzg/minecraft-server
@ -35,10 +45,10 @@ services:
MOTD: "Kas' server"
VERSION: "1.16.5"
OPS: "Meneer_appel"
ports:
- 25566:25566
volumes:
- /srv/kasmc/data:/data
networks:
- minecraft
stoneblock3:
image: itzg/minecraft-server
@ -54,6 +64,8 @@ services:
- 25567:25565
volumes:
- /srv/sb3/data:/data
networks:
- minecraft
rust:
image: didstopia/rust-server:latest