2022-11-01 00:24:27 -07:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
router:
|
|
|
|
image: itzg/mc-router
|
2022-11-01 15:23:03 -07:00
|
|
|
container_name: minecraft_router
|
2022-11-01 00:24:27 -07:00
|
|
|
logging:
|
|
|
|
driver: loki
|
|
|
|
options:
|
|
|
|
loki-url: http://localhost:3100/loki/api/v1/push
|
|
|
|
loki-batch-size: "50"
|
|
|
|
loki-retries: "1"
|
|
|
|
loki-timeout: "2s"
|
|
|
|
keep-file: "true"
|
|
|
|
restart: "no"
|
|
|
|
networks:
|
|
|
|
- mc-router
|
|
|
|
ports:
|
|
|
|
- 25565:25565
|
|
|
|
command: --mapping=vanilla.jafner.net=vanilla:25565,e9.jafner.net=e9:25565,fan.jafner.net=fan:25565,vanilla2.jafner.net=vanilla2:25565,bmcp.jafner.net=bmcp:25565 --api-binding=0.0.0.0:25566
|
|
|
|
|
|
|
|
bmcp:
|
|
|
|
image: itzg/minecraft-server:java17
|
|
|
|
container_name: minecraft_bmcp
|
|
|
|
env_file:
|
|
|
|
- minecraft.env
|
|
|
|
- bmcp.env
|
|
|
|
volumes:
|
|
|
|
- $DOCKER_DATA/bmcp2:/data:rw
|
|
|
|
networks:
|
|
|
|
- mc-router
|
|
|
|
restart: "no"
|
|
|
|
|
|
|
|
e9:
|
|
|
|
image: itzg/minecraft-server:latest
|
|
|
|
container_name: minecraft_e9
|
|
|
|
logging:
|
|
|
|
driver: loki
|
|
|
|
options:
|
|
|
|
loki-url: http://localhost:3100/loki/api/v1/push
|
|
|
|
loki-batch-size: "50"
|
|
|
|
loki-retries: "1"
|
|
|
|
loki-timeout: "2s"
|
|
|
|
keep-file: "true"
|
|
|
|
env_file:
|
|
|
|
- minecraft.env
|
|
|
|
- e9.env
|
|
|
|
volumes:
|
|
|
|
- $DOCKER_DATA/e9:/data:rw
|
|
|
|
networks:
|
|
|
|
- mc-router
|
|
|
|
restart: "no"
|
|
|
|
|
|
|
|
fan:
|
|
|
|
image: itzg/minecraft-server:java8
|
|
|
|
container_name: minecraft_fan
|
|
|
|
env_file:
|
|
|
|
- minecraft.env
|
|
|
|
- fan.env
|
|
|
|
environment:
|
|
|
|
- RCON_CMDS_STARTUP= |-
|
|
|
|
/pregen start gen radius Pregen SQUARE 0 0 500
|
|
|
|
- RCON_CMDS_FIRST_CONNECT= |-
|
|
|
|
/pregen pause
|
|
|
|
- RCON_CMDS_LAST_DISCONNECT= |-
|
|
|
|
/pregen continue
|
|
|
|
volumes:
|
|
|
|
- $DOCKER_DATA/fan:/data:rw
|
|
|
|
networks:
|
|
|
|
- mc-router
|
2022-11-01 00:26:37 -07:00
|
|
|
restart: "no"
|
2022-11-01 00:24:27 -07:00
|
|
|
|
|
|
|
vanilla:
|
|
|
|
image: itzg/minecraft-server:latest
|
|
|
|
container_name: minecraft_vanilla
|
|
|
|
logging:
|
|
|
|
driver: loki
|
|
|
|
options:
|
|
|
|
loki-url: http://localhost:3100/loki/api/v1/push
|
|
|
|
loki-batch-size: "50"
|
|
|
|
loki-retries: "1"
|
|
|
|
loki-timeout: "2s"
|
|
|
|
keep-file: "true"
|
|
|
|
env_file:
|
|
|
|
- minecraft.env
|
|
|
|
- vanilla.env
|
|
|
|
volumes:
|
|
|
|
- $DOCKER_DATA/vanilla:/data:rw
|
|
|
|
networks:
|
|
|
|
- mc-router
|
|
|
|
|
|
|
|
vanilla2:
|
|
|
|
image: itzg/minecraft-server:java8
|
|
|
|
container_name: minecraft_vanilla2
|
|
|
|
logging:
|
|
|
|
driver: loki
|
|
|
|
options:
|
|
|
|
loki-url: http://localhost:3100/loki/api/v1/push
|
|
|
|
loki-batch-size: "50"
|
|
|
|
loki-retries: "1"
|
|
|
|
loki-timeout: "2s"
|
|
|
|
keep-file: "true"
|
|
|
|
env_file:
|
|
|
|
- minecraft.env
|
|
|
|
- vanilla2.env
|
|
|
|
volumes:
|
|
|
|
- $DOCKER_DATA/vanilla2:/data:rw
|
|
|
|
networks:
|
|
|
|
- mc-router
|
|
|
|
|
|
|
|
networks:
|
|
|
|
mc-router:
|
|
|
|
external: true
|
|
|
|
volumes:
|
|
|
|
mc-router:
|