Add AMP minecraft

This commit is contained in:
Carsten Sprung 2022-06-06 17:13:46 +02:00
parent 3e49cc69bf
commit bdce3e1b0a
4 changed files with 39 additions and 0 deletions

View file

@ -28,3 +28,5 @@ MATRIX_REGISTRATION_SECRET=
MATRIX_MAROON_SECRET= MATRIX_MAROON_SECRET=
MATRIX_FORM_SECRET= MATRIX_FORM_SECRET=
MATRIX_MAIL_FROM= MATRIX_MAIL_FROM=
MINECRAFT_AMP_LICENSE=

View file

@ -13,6 +13,7 @@ vars:
gitea gitea
nextcloud nextcloud
proxy proxy
minecraft
RELEVANT_SERVICES: "{{coalesce .SERVICES .ACTIVE_SERVICES}}" RELEVANT_SERVICES: "{{coalesce .SERVICES .ACTIVE_SERVICES}}"
DOCKER_COMPOSE_FILES: DOCKER_COMPOSE_FILES:
sh: find -wholename "*/docker-compose.yml" sh: find -wholename "*/docker-compose.yml"

View file

@ -0,0 +1,29 @@
version: "3.7"
# https://github.com/MitchTalmadge/AMP-dockerized
# https://github.com/MitchTalmadge/AMP-dockerized/blob/master/example-configs/minecraft/docker-compose.yml
services:
minecraft:
image: mitchtalmadge/amp-dockerized:latest
container_name: minecraft
restart: "${RESTART:-no}"
hostname: minecraft
domainname: ${BASE_DOMAIN}
mac_address: 02:42:AC:D7:11:9C # Please see the README about this field.
ports:
- 25565:25565 # For Java Edition (TCP)
# - 19132:19132/udp # For Bedrock Edition (UDP)
# - 25570:8080 # Maybe you already have something running on 8080, so we could map to 25570. Remove if you want to use 8080.
volumes:
- ./ampdata:/home/amp/.ampdata
environment:
- UID=0
- GID=0
- TZ=DE # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
- LICENCE=${MINECRAFT_AMP_LICENSE}
- MODULE=Minecraft
volumes:
- ${BASE_DIR:-/srv}/minecraft/ampdata:/home/amp/.ampdata
networks:
- proxy

View file

@ -109,3 +109,10 @@ https://md.{$BASE_DOMAIN} {
transparent transparent
} }
} }
https://amp.{$BASE_DOMAIN} {
import config/common
proxy / minecraft:8080 {
transparent
}
}