168 lines
5.4 KiB
JSON
168 lines
5.4 KiB
JSON
[
|
|
{
|
|
"id": "minecraft",
|
|
"name": "Minecraft",
|
|
"description": "Minecraft Java Edition server",
|
|
"defaultPort": 25565,
|
|
"templateImage": "/images/minecraft.webp",
|
|
"docker": {
|
|
"image": "eclipse-temurin",
|
|
"tag": "21-jre",
|
|
"ports": [
|
|
25565
|
|
],
|
|
"volumes": [
|
|
"{BOT_DIR}:/data"
|
|
],
|
|
"workdir": "/data",
|
|
"env": {},
|
|
"command": "java -Xms128M -Xmx{RAM_MB}M -jar /data/server.jar nogui",
|
|
"restart": "unless-stopped",
|
|
"console": {
|
|
"type": "stdin"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "nodejs",
|
|
"name": "Node.js",
|
|
"description": "Run Node.js applications easy.",
|
|
"defaultPort": 3000,
|
|
"templateImage": "/images/nodejs.webp",
|
|
"docker": {
|
|
"image": "node",
|
|
"tag": "20-alpine",
|
|
"ports": [
|
|
3000
|
|
],
|
|
"volumes": [
|
|
"{BOT_DIR}:/app"
|
|
],
|
|
"workdir": "/app",
|
|
"env": {
|
|
"NODE_ENV": "production"
|
|
},
|
|
"command": "node /app/index.js",
|
|
"restart": "unless-stopped",
|
|
"console": {
|
|
"type": "stdin"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "csgo",
|
|
"name": "Counter-Strike 2",
|
|
"description": "Counter-Strike 2 dedicated server installed with an ADPanel SteamCMD installer",
|
|
"defaultPort": 27015,
|
|
"templateImage": "https://cdn.cloudflare.steamstatic.com/steam/apps/730/header.jpg",
|
|
"docker": {
|
|
"image": "ghcr.io/ptero-eggs/steamcmd",
|
|
"tag": "sniper",
|
|
"ports": [
|
|
27015,
|
|
27020,
|
|
27005
|
|
],
|
|
"volumes": [
|
|
"{BOT_DIR}:/home/container"
|
|
],
|
|
"workdir": "/home/container",
|
|
"env": {
|
|
"SRCDS_APPID": "730",
|
|
"SRCDS_MAP": "de_dust2",
|
|
"MAX_PLAYERS": "12",
|
|
"AUTO_UPDATE": "1",
|
|
"TV_PORT": "27020",
|
|
"STEAM_GSLT": "",
|
|
"VAC_ENABLED": "1",
|
|
"RCON_ENABLED": "0",
|
|
"SERVER_NAME": "ADPanel CS2 Server",
|
|
"SERVER_PASSWORD": "",
|
|
"RCON_PASSWORD": "changeme",
|
|
"GAME_MODE": "1",
|
|
"GAME_TYPE": "0",
|
|
"STEAM_USER": "anonymous",
|
|
"STEAM_PASS": "",
|
|
"STEAM_AUTH": "",
|
|
"EXTRA_FLAGS": ""
|
|
},
|
|
"adpanelStartup": "LD_LIBRARY_PATH=\"$HOME/game/bin/linuxsteamrt64:$LD_LIBRARY_PATH\" ./game/bin/linuxsteamrt64/cs2 -dedicated $( [ \"$VAC_ENABLED\" == \"1\" ] || printf %s ' -insecure' ) -ip 0.0.0.0 -port {{SERVER_PORT}} -tv_port {{TV_PORT}} -maxplayers {{MAX_PLAYERS}} $( [ \"$RCON_ENABLED\" == \"0\" ] || printf %s ' -usercon' ) +game_mode {{GAME_MODE}} +game_type {{GAME_TYPE}} +map {{SRCDS_MAP}} +hostname \"{{SERVER_NAME}}\" +sv_password \"{{SERVER_PASSWORD}}\" +rcon_password \"{{RCON_PASSWORD}}\" +sv_setsteamaccount {{STEAM_GSLT}}",
|
|
"install": {
|
|
"image": "ghcr.io/pterodactyl/installers:debian",
|
|
"entrypoint": "bash",
|
|
"mountPath": "/mnt/server",
|
|
"runtimePath": "/home/container",
|
|
"timeoutSeconds": 7200,
|
|
"minimumStorageMb": 40000,
|
|
"script": "#!/bin/bash\nset -e\nif [[ -z \"${STEAM_USER}\" || -z \"${STEAM_PASS}\" ]]; then\n STEAM_USER=anonymous\n STEAM_PASS=\"\"\n STEAM_AUTH=\"\"\nfi\ncd /tmp\nmkdir -p /mnt/server/steamcmd /mnt/server/steamapps\ncurl -sSL -o steamcmd.tar.gz https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz\ntar -xzvf steamcmd.tar.gz -C /mnt/server/steamcmd\ncd /mnt/server/steamcmd\nchown -R root:root /mnt\nexport HOME=/mnt/server\n./steamcmd.sh +force_install_dir /mnt/server +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} +app_update ${SRCDS_APPID} ${EXTRA_FLAGS} validate +quit\nmkdir -p /mnt/server/.steam/sdk32 /mnt/server/.steam/sdk64\ncp -v linux32/steamclient.so /mnt/server/.steam/sdk32/steamclient.so || true\ncp -v linux64/steamclient.so /mnt/server/.steam/sdk64/steamclient.so || true\necho \"Installation completed.\""
|
|
},
|
|
"restart": "unless-stopped",
|
|
"console": {
|
|
"type": "stdin"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "fivem",
|
|
"name": "FiveM",
|
|
"description": "Run your FiveM servers with this template",
|
|
"defaultPort": 30120,
|
|
"templateImage": "https://logos-world.net/wp-content/uploads/2021/03/FiveM-Symbol.png",
|
|
"docker": {
|
|
"image": "ich777/fivemserver",
|
|
"tag": "latest",
|
|
"ports": [
|
|
30120,
|
|
30110,
|
|
8080
|
|
],
|
|
"volumes": [
|
|
"{BOT_DIR}:/serverdata/serverfiles"
|
|
],
|
|
"workdir": "/serverdata/serverfiles",
|
|
"env": {
|
|
"DATA_DIR": "/serverdata",
|
|
"SERVER_DIR": "/serverdata/serverfiles",
|
|
"GAME_CONFIG": "server.cfg",
|
|
"SERVER_KEY": "change-me",
|
|
"SRV_ADR": "https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/",
|
|
"MANUAL_UPDATES": "",
|
|
"ENABLE_WEBCONSOLE": "true",
|
|
"UID": "99",
|
|
"GID": "100",
|
|
"START_VARS": ""
|
|
},
|
|
"restart": "unless-stopped",
|
|
"console": {
|
|
"type": "stdin"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "python",
|
|
"name": "Python",
|
|
"description": "Run Python applications and frameworks",
|
|
"defaultPort": 8000,
|
|
"templateImage": "https://stalwart-pegasus-2c2ca4.netlify.app/img/python-logo.webp",
|
|
"docker": {
|
|
"image": "python",
|
|
"tag": "3.12-slim",
|
|
"ports": [
|
|
8000
|
|
],
|
|
"volumes": [
|
|
"{BOT_DIR}:/app"
|
|
],
|
|
"workdir": "/app",
|
|
"env": {
|
|
"PYTHONUNBUFFERED": "1"
|
|
},
|
|
"command": "python /app/main.py",
|
|
"restart": "unless-stopped",
|
|
"console": {
|
|
"type": "stdin"
|
|
}
|
|
}
|
|
}
|
|
]
|