From 643f41089a00fc08696cf94a4f5e9fcd3152999a Mon Sep 17 00:00:00 2001 From: timekills Date: Wed, 16 Jan 2019 01:43:29 +0430 Subject: [PATCH] Added traefik forwarding for Minecraft server In order to access McMyAdmin you have to change the default username: From SSH into the server: 1. docker exec -it mcmyadmin2 /bin/bash 2. ./minecraft/MCMA2_Linux_x86_64 -setpass yourNewUserName -configonly 3. docker stop mcmyadmin2 4. docker start mcmyadmin2 5. login with username yourNewUserName and password password 6. Change the password from the McMyAdmin web interface --- apps/mcmyadmin2.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/apps/mcmyadmin2.yml b/apps/mcmyadmin2.yml index 960768d..d600be0 100644 --- a/apps/mcmyadmin2.yml +++ b/apps/mcmyadmin2.yml @@ -18,6 +18,8 @@ extport: '8088' intport2: '25565' extport2: '25565' + intport3: '25566' + extport3: '25566' image: 'linuxserver/mcmyadmin2' - name: 'Including cron job' @@ -42,13 +44,29 @@ mode: 0755 # LABELS #### KEEPS BOTTOM CLEAN ########################################### - - name: 'Adding Traefik' + - name: 'Adding Traefik for McMyAdmin' set_fact: pg_labels: traefik.frontend.auth.forward.address: '{{gauth}}' traefik.enable: 'true' traefik.port: '{{intport}}' - traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}' + traefik.frontend.rule: 'Host:mcmyadmin.{{domain.stdout}},{{tldset}}' + + - name: 'Adding Traefik for Minecraft Server1' + set_fact: + pg_labels: +# traefik.frontend.auth.forward.address: '{{gauth}}' + traefik.enable: 'true' + traefik.port: '{{intport2}}' + traefik.frontend.rule: 'Host:minecraft.{{domain.stdout}},{{tldset}}' + + - name: 'Adding Traefik for Minecraft Server2' + set_fact: + pg_labels: +# traefik.frontend.auth.forward.address: '{{gauth}}' + traefik.enable: 'true' + traefik.port: '{{intport3}}' + traefik.frontend.rule: 'Host:minecraft2.{{domain.stdout}},{{tldset}}' - name: 'Setting PG Volumes' set_fact: