Advertisement
primall

Minecraft Behind Reverse Proxy on Docker (Untested)

Nov 9th, 2023
787
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.89 KB | Gaming | 0 0
  1. version: "3"
  2.  
  3. services:
  4.   infrared:
  5.     build: "."
  6.     container_name: "infrared"
  7.     restart: "unless-stopped"
  8.     stdin_open: true
  9.     tty: true
  10.     ports:
  11.      - "25565:25565"
  12.       - "19132:19132"
  13.     volumes:
  14.      - "/usr/local/infrared/configs:/configs"
  15.     expose:
  16.      - "25565"
  17.     environment:
  18.       INFRARED_CONFIG_PATH: "/configs"
  19.  
  20.   mc:
  21.     image: itzg/minecraft-server
  22.     restart: always
  23.     tty: true
  24.     stdin_open: true
  25.     deploy:
  26.       resources:
  27.         limits:
  28.           memory: 8000M
  29.         reservations:
  30.           memory: 2000M
  31.     expose:
  32.      - "25565"
  33.       - "19132"
  34.     environment:
  35.       TZ: "Asia/Jakarta"
  36.       MEMORY: 8G
  37.       EULA: "TRUE"
  38.       TYPE: "PAPER"
  39.       ONLINE_MODE: "FALSE"
  40.       DIFFICULTY: "EASY"
  41.       SERVER_NAME: "EXAMPLE.COM"
  42.       #PLUGINS: |
  43.      #  https://mediafilez.forgecdn.net/files/4675/318/worldguard-bukkit-7.0.9-dist.jar
  44.       #  https://download.geysermc.org/v2/projects/geyser/versions/2.1.1/builds/252/downloads/spigot
  45.       #  https://www.spigotmc.org/resources/farm-protection-for-mc-1-16-1-20.85488/download?version=365362
  46.       #  https://download.geysermc.org/v2/projects/floodgate/versions/2.2.2/builds/59/downloads/spigot
  47.       #  https://github.com/DiscordSRV/DiscordSRV/releases/download/v1.26.2/DiscordSRV-Build-1.26.2.jar
  48.       #  https://ci.citizensnpcs.co/job/citizens2/3179/artifact/dist/target/Citizens-2.0.32-b3179.jar
  49.       #  https://github.com/2008Choco/VeinMiner/releases/download/v2.1.0/VeinMiner-Bukkit-2.1.0.jar
  50.       #  https://github.com/dmulloy2/ProtocolLib/releases/download/5.1.0/ProtocolLib.jar
  51.       #  https://github.com/Gecolay/GSit/releases/download/1.4.10/GSit-1.4.10.jar
  52.       #  https://mediafilez.forgecdn.net/files/4586/220/worldedit-bukkit-7.2.15.jar
  53.        
  54.     volumes:
  55.      # attach the relative directory 'data' to the container's /data path
  56.       - /etc/minecraft:/data
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement