itzg / docker-bungeecord

A BungeeCord server to use in conjunction with itzg/minecraft-server
Apache License 2.0
179 stars 61 forks source link

Apply patches after related config file is created #168

Open Player505 opened 5 months ago

Player505 commented 5 months ago

Related to docker-minecraft-server issue #2522 Just thought I'd make an issue here too but from what I can see it's the same as the docker-minecraft-server issue. I'm aware I can just mount the config file but would like to minimise the number of files needed to replicate on fresh system.

docker-compose.yml

version: "3.8"

services:
  proxy:
    image: itzg/bungeecord
    tty: true
    stdin_open: true
    ports:
      - "25565:25577"
      - "19132:19132/udp"
      - "24454:24454/udp"
    volumes:
     - ./velocity.toml:/server/velocity.toml
     - ./forwarding.secret:/server/forwarding.secret
    #- ./plugins:/plugins
     - ./patch.json:/server/patch.json
    environment:
      TYPE: VELOCITY
     #ICON: ~/server-icon.png
      MEMORY: 512m
      MODRINTH_PROJECTS: viaversion, viabackwards, viarewind
      MINECRAFT_VERSION: "1.20.1"
      PATCH_DEFINITIONS: /server/patch.json
    links:
      - limbo
    restart: always

patch.json

{
 "patches": [
    {
      "file": "/server/plugins/viaversion/config.yml",
      "ops": [
        {
          "$set": {
            "path": "$.max-pps",
            "value": -1
          }
        }
      ]
    }
  ]
}
github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity. Please add a comment describing the reason to keep this issue open.