2019-07-21 23:04:00 +02:00
|
|
|
FROM jusito/docker-ttt:lgsm_debian
|
|
|
|
|
2019-07-29 21:52:25 +02:00
|
|
|
# Const \\ Overwrite Env \\ Configs optional
|
2019-07-21 23:04:00 +02:00
|
|
|
ENV CSS_PATH="/home/steam/addons/css" \
|
|
|
|
HL2_PATH="/home/steam/addons/hl2" \
|
|
|
|
HLDM_PATH="/home/steam/addons/hldm" \
|
|
|
|
TF2_PATH="/home/steam/addons/tf2" \
|
|
|
|
\
|
|
|
|
\
|
|
|
|
SERVER_EXECUTABLE="gmodserver" \
|
|
|
|
SERVER_GAME="gmodserver" \
|
|
|
|
\
|
|
|
|
\
|
2019-07-29 21:52:25 +02:00
|
|
|
WORKSHOP_COLLECTION_ID="" \
|
|
|
|
WORKSHOP_API_KEY="" \
|
|
|
|
WORKSHOP_AUTOLOAD="true" \
|
2019-10-15 12:59:03 +02:00
|
|
|
SERVER_NAME="LinuxGSM" \
|
2019-07-21 23:04:00 +02:00
|
|
|
SERVER_PASSWORD="" \
|
2019-10-15 12:59:03 +02:00
|
|
|
SERVER_RCON_PASSWORD="" \
|
2019-07-21 23:04:00 +02:00
|
|
|
SERVER_VOICE_ENABLE="1" \
|
2019-07-29 21:52:25 +02:00
|
|
|
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" \
|
2019-07-21 23:04:00 +02:00
|
|
|
\
|
|
|
|
INSTALL_CSS=false \
|
|
|
|
INSTALL_HL2=false \
|
|
|
|
INSTALL_HLDM=false \
|
|
|
|
INSTALL_TF2=false \
|
|
|
|
\
|
2019-07-29 21:52:25 +02:00
|
|
|
USE_MY_REPLACER_CONFIG=false
|
|
|
|
|
2019-07-21 23:04:00 +02:00
|
|
|
|
2019-10-17 10:55:04 +02:00
|
|
|
COPY ["gmod/prepareServer.sh", "gmod/initConfig.sh", "gmod/forceWorkshopDownload.sh", "gmod/installAndMountAddons.sh", "gmod/common.cfg", "/home/"]
|
2019-07-21 23:04:00 +02:00
|
|
|
|
|
|
|
RUN chown "$DOCKER_USER:$DOCKER_USER" /home/prepareServer.sh && \
|
|
|
|
chown "$DOCKER_USER:$DOCKER_USER" /home/initConfig.sh && \
|
|
|
|
chown "$DOCKER_USER:$DOCKER_USER" /home/forceWorkshopDownload.sh && \
|
|
|
|
chown "$DOCKER_USER:$DOCKER_USER" /home/installAndMountAddons.sh && \
|
|
|
|
chmod a=rx /home/prepareServer.sh && \
|
|
|
|
chmod a=rx /home/initConfig.sh && \
|
|
|
|
chmod a=rx /home/forceWorkshopDownload.sh && \
|
2019-10-15 16:25:44 +02:00
|
|
|
chmod a=rx /home/installAndMountAddons.sh && \
|
|
|
|
\
|
|
|
|
/home/createAlias.sh "backup" '/home/steam/gmodserver backup' && \
|
|
|
|
/home/createAlias.sh "console" '/home/steam/gmodserver console' && \
|
|
|
|
/home/createAlias.sh "debug" '/home/steam/gmodserver debug' && \
|
|
|
|
/home/createAlias.sh "details" '/home/steam/gmodserver details' && \
|
|
|
|
/home/createAlias.sh "force-update" '/home/steam/gmodserver force-update' && \
|
|
|
|
/home/createAlias.sh "install" '/home/steam/gmodserver install' && \
|
|
|
|
/home/createAlias.sh "monitor" '/home/steam/gmodserver monitor' && \
|
|
|
|
/home/createAlias.sh "postdetails" '/home/steam/gmodserver postdetails' && \
|
|
|
|
/home/createAlias.sh "restart" '/home/steam/gmodserver restart' && \
|
|
|
|
/home/createAlias.sh "start" '/home/steam/gmodserver start' && \
|
|
|
|
/home/createAlias.sh "stop" '/home/steam/gmodserver stop' && \
|
|
|
|
/home/createAlias.sh "test-alert" '/home/steam/gmodserver test-alert' && \
|
|
|
|
/home/createAlias.sh "update" '/home/steam/gmodserver update' && \
|
|
|
|
/home/createAlias.sh "update-lgsm" '/home/steam/gmodserver update-lgsm' && \
|
|
|
|
/home/createAlias.sh "validate" '/home/steam/gmodserver validate'
|