diff --git a/gameservers/minecraft/docker-compose.yml b/gameservers/minecraft/docker-compose.yml new file mode 100644 index 0000000..5df2b6a --- /dev/null +++ b/gameservers/minecraft/docker-compose.yml @@ -0,0 +1,26 @@ +version: '3.8' + +services: + vanilla-minecraft-server: + image: itzg/minecraft-server:java8-multiarch + container_name: vanilla-minecraft-server + stdin_open: true + tty: true + environment: + - MEMORY=2G # set this based on number of players you expect + - EULA=TRUE + - VERSION=1.20 # it's a good idea to set this statically, and only update minor versions + # updating to a new major version on the same world will make borders between new and old chunks clash + - TYPE=VANILLA + networks: + - proxy-tier + volumes: + - ./data:/data + ports: + - 25565:25565/udp + - 25565:25565/tcp + restart: unless-stopped + +networks: + proxy-tier: + external: true diff --git a/gameservers/modded-minecraft/docker-compose.yml b/gameservers/modded-minecraft/docker-compose.yml new file mode 100644 index 0000000..0ff8bb8 --- /dev/null +++ b/gameservers/modded-minecraft/docker-compose.yml @@ -0,0 +1,29 @@ +version: '3.8' + +services: + modded-minecraft-server: + image: itzg/minecraft-server:latest + container_name: modded-minecraft-server + stdin_open: true + tty: true + environment: + - MEMORY=4G + - EULA=TRUE + - VERSION=1.20 # it's a good idea to set this statically, and only update minor versions + # updating to a new major version on the same world will make borders between new and old chunks clash + - TYPE=FABRIC + # - TYPE=FORGE + # before you start the container, make sure your mods are in the data/mods directory! + # some mods, especially biome mods, won't work right unless they are there when the world is generated + networks: + - proxy-tier + volumes: + - ./data:/data + ports: + - 27565:25565/udp + - 27565:25565/tcp + restart: unless-stopped + +networks: + proxy-tier: + external: true diff --git a/gameservers/terraria/docker-compose.yml b/gameservers/terraria/docker-compose.yml new file mode 100644 index 0000000..57cedad --- /dev/null +++ b/gameservers/terraria/docker-compose.yml @@ -0,0 +1,22 @@ +version: '3.8' + +services: + terraria-server: + image: ghcr.io/beardedio/terraria:latest + container_name: terraria-server + stdin_open: true + tty: true + environment: + - world=YourWorldName # use this if you already have a world save in the config directory + # comment out the above two lines if you don't have a world and need to generate one + networks: + - proxy-tier + volumes: + - ./config:/config + ports: + - 7777:7777 + restart: unless-stopped + +networks: + proxy-tier: + external: true