+ added lgsm config variables

This commit is contained in:
Lucas Briese 2019-07-29 21:52:25 +02:00
parent 1f85a9a406
commit 789195d2d9
2 changed files with 53 additions and 10 deletions

View File

@ -1,6 +1,6 @@
FROM jusito/docker-ttt:gmod_debian FROM jusito/docker-ttt:gmod_debian
ENV SERVER_GAMEMODE="+gamemode terrortown" ENV SERVER_GAMEMODE="terrortown"
COPY "server.cfg.default" "/home/server.cfg.default" COPY "server.cfg.default" "/home/server.cfg.default"

View File

@ -1,8 +1,6 @@
FROM jusito/docker-ttt:lgsm_debian FROM jusito/docker-ttt:lgsm_debian
EXPOSE 27015/udp 27015/tcp # Const \\ Overwrite Env \\ Configs optional
# Const \\ Overwrite Env \\ Configs optional \\ Configs needed
ENV CSS_PATH="/home/steam/addons/css" \ ENV CSS_PATH="/home/steam/addons/css" \
HL2_PATH="/home/steam/addons/hl2" \ HL2_PATH="/home/steam/addons/hl2" \
HLDM_PATH="/home/steam/addons/hldm" \ HLDM_PATH="/home/steam/addons/hldm" \
@ -13,22 +11,67 @@ ENV CSS_PATH="/home/steam/addons/css" \
SERVER_GAME="gmodserver" \ SERVER_GAME="gmodserver" \
\ \
\ \
WORKSHOP_COLLECTION_ID= \ WORKSHOP_COLLECTION_ID="" \
WORKSHOP_API_KEY="" \
WORKSHOP_AUTOLOAD="true" \
SERVER_NAME="" \ SERVER_NAME="" \
SERVER_PASSWORD="" \ SERVER_PASSWORD="" \
SERVER_VOICE_ENABLE="1" \ SERVER_VOICE_ENABLE="1" \
SERVER_IP="0.0.0.0" \
SERVER_PORT="27015" \
SERVER_CLIENTPORT="27005" \
SERVER_SOURCETVPORT="27020" \
SERVER_DEFAULT_MAP="gm_construct" \
SERVER_MAX_PLAYERS="16" \
SERVER_TICKRATE="66" \
SERVER_GAMEMODE="sandbox" \
SERVER_LOGIN_TOKEN="" \
SERVER_ADDITIONAL_PARAMETERS="-disableluarefresh" \
LGSM_DISPLAYIP="" \
LGSM_POSTALERT="off" \
LGSM_POSTDAYS="7" \
LGSM_POSTTARGET="https://hastebin.com" \
LGSM_DISCORDALERT="off" \
LGSM_DISCORDWEBHOOK="webhook" \
LGSM_EMAILALERT="off" \
LGSM_EMAIL="email@example.com" \
LGSM_EMAILFROM="" \
LGSM_IFTTTALERT="off" \
LGSM_IFTTTTOKEN="accesstoken" \
LGSM_IFTTTEVENT="linuxgsm_alert" \
LGSM_MAILGUNALERT="off" \
LGSM_MAILGUNTOKEN="accesstoken" \
LGSM_MAILGUNDOMAIN="example.com" \
LGSM_MAILGUNEMAILFROM="alert@example.com" \
LGSM_MAILGUNEMAIL="email@myemail.com" \
LGSM_PUSHBULLETALERT="off" \
LGSM_PUSHBULLETTOKEN="accesstoken" \
LGSM_CHANNELTAG="" \
LGSM_PUSHOVERALERT="off" \
LGSM_PUSHOVERTOKEN="accesstoken" \
LGSM_TELEGRAMALERT="off" \
LGSM_TELEGRAMTOKEN="accesstoken" \
LGSM_TELEGRAMCHATID="" \
LGSM_CURLCUSTOMSTRING="" \
LGSM_UPDATEONSTART="off" \
LGSM_MAXBACKUPS="4" \
LGSM_MAXBACKUPDAYS="30" \
LGSM_STOPONBACKUP="on" \
LGSM_CONSOLELOGGING="on" \
LGSM_LOGDAYS="7" \
LGSM_QUERYDELAY="5" \
LGSM_BRANCH="" \
LGSM_STEAMMASTER="true" \
\ \
INSTALL_CSS=false \ INSTALL_CSS=false \
INSTALL_HL2=false \ INSTALL_HL2=false \
INSTALL_HLDM=false \ INSTALL_HLDM=false \
INSTALL_TF2=false \ INSTALL_TF2=false \
\ \
USE_MY_REPLACER_CONFIG=false \ USE_MY_REPLACER_CONFIG=false
\
\
SERVER_GAMEMODE=""
COPY ["prepareServer.sh", "initConfig.sh", "forceWorkshopDownload.sh", "installAndMountAddons.sh", "/home/"] COPY ["prepareServer.sh", "initConfig.sh", "forceWorkshopDownload.sh", "installAndMountAddons.sh", "common.cfg", "/home/"]
RUN chown "$DOCKER_USER:$DOCKER_USER" /home/prepareServer.sh && \ RUN chown "$DOCKER_USER:$DOCKER_USER" /home/prepareServer.sh && \
chown "$DOCKER_USER:$DOCKER_USER" /home/initConfig.sh && \ chown "$DOCKER_USER:$DOCKER_USER" /home/initConfig.sh && \