Added Minecraft

master
Yuri van Midden 10 months ago
parent 0cf5dc2353
commit a0e7ae398e
Signed by: yuri
GPG Key ID: B1E365DD233EF90A
  1. 3
      README.md
  2. 8
      config/minecraft/minecraft.env
  3. 21
      docker-compose.yml
  4. 7
      env.dist

@ -2,9 +2,10 @@
# Harambee dedicated servers for games set-up
This repository is a set-up for several dedicated servers for the online enjoyment of members of Harambee. It consists of a docker-compose stack that is meant to be deployed almost as-is.
## Currently included (15-02-2020)
## Currently included (15-02-2022)
- [Valheim](https://github.com/lloesche/valheim-server-docker)
- [Factorio](https://github.com/factoriotools/factorio-docker)
- [Minecraft](https://github.com/itzg/docker-minecraft-server)
## How to set up yourself?
1. Clone this repository

@ -0,0 +1,8 @@
MOTD="§5Hop hop hop Harambee"
DIFFICULTY=normal
ENABLE_RCON=true
ALLOW_NETHER=true
ANNOUNCE_PLAYER_ACHIEVEMENTS=true
ENABLE_COMMAND_BLOCK=true
SERVER_NAME=Harambee
MODE=survival

@ -46,3 +46,24 @@ services:
- "./config/factorio/map-gen-settings.json:/factorio/config/map-gen-settings.json"
- "./config/factorio/mod-list.json:/factorio/mods/mod-list.json"
entrypoint: /bin/sh -c "mkdir -p /factorio/config && envsubst < /server-settings.json > /factorio/config/server-settings.json && envsubst < /server-adminlist.json > /factorio/config/server-adminlist.json && exec /docker-entrypoint.sh"
#
# Minecraft
#
minecraft:
image: itzg/minecraft-server:latest
container_name: games_minecraft
restart: unless-stopped
env_file:
- ./config/minecraft/minecraft.env
environment:
- TZ=${TZ}
- EULA=TRUE
- RCON_PASSWORD=${MINECRAFT_RCON_PASSWORD}
ports:
- "25565:25565"
- "25575:25575"
volumes:
- "${DATA_DIR}/minecraft:/data"
tty: true
stdin_open: true

@ -19,4 +19,9 @@ VALHEIM_SERVER_PUBLIC=1
FACTORIO_UPDATE_MODS_ON_START=false # [true|false], requires FACTORIO_TOKEN to be set
FACTORIO_USERNAME=
FACTORIO_TOKEN=
FACTORIO_GAME_PASSWORD=
FACTORIO_GAME_PASSWORD=
#
# Minecraft
#
MINECRAFT_RCON_PASSWORD=

Loading…
Cancel
Save