# AMP Game Server Panel Alternative

> LinuxGSM-based game server management with multiple game support and web interface.

- Category: Home Lab & Self-Hosting
- Difficulty: intermediate
- Components: linuxgsm, nginx, prometheus, grafana
- Tags: gaming, game-server, linuxgsm, management
- Source: https://docker.recipes/homelab/amp-game-panel

## Overview

LinuxGSM (Linux Game Server Manager) is a command-line tool that simplifies the deployment and management of dedicated game servers on Linux systems. Created to eliminate the complexity of manually configuring game servers, LinuxGSM supports over 120 different games including Counter-Strike, Minecraft, Garry's Mod, and Team Fortress 2, providing automated installation, updates, backups, and monitoring capabilities. This containerized implementation combines LinuxGSM with a comprehensive monitoring and web management stack to create a powerful alternative to commercial game server panels like AMP (Application Management Panel).

This stack integrates LinuxGSM's game server management capabilities with Prometheus for metrics collection, Grafana for visualization dashboards, and NGINX as a reverse proxy to create a unified web interface. Prometheus scrapes server performance metrics, player counts, and system resources, while Grafana transforms this data into intuitive dashboards showing server health, player activity trends, and resource utilization. NGINX handles SSL termination and provides secure access to the Grafana interface, creating a professional-grade game server management platform.

Homelab enthusiasts, small gaming communities, and indie game developers will find this stack particularly valuable as it delivers enterprise-level game server management without licensing costs or player limits imposed by commercial alternatives. The combination provides both the reliability of LinuxGSM's battle-tested server management with modern observability tools, making it ideal for managing multiple game servers across different titles while maintaining full control over the hosting environment.

## Features

- LinuxGSM support for 120+ game titles with automated installation, updates, and server lifecycle management
- Prometheus metrics collection for game server performance, player statistics, and system resource monitoring
- Grafana dashboard visualization with customizable panels for server health, player trends, and alert management
- NGINX reverse proxy with SSL termination and load balancing for secure web interface access
- Multi-game server deployment capability allowing different game types on the same host infrastructure
- PromQL-powered alerting for server downtime, resource exhaustion, and player count thresholds
- LinuxGSM's built-in backup system with Grafana visualization of backup status and storage usage
- Container-based isolation allowing multiple game server instances without host system conflicts

## Use cases

- Small gaming communities running multiple dedicated servers for different games with centralized monitoring
- Homelab enthusiasts replacing expensive AMP licenses with open-source game server management
- Indie game developers testing multiplayer functionality across various server configurations and loads
- LAN party organizers deploying temporary game servers with real-time performance monitoring
- Gaming clans managing private servers for competitive matches with historical performance analytics
- Educational institutions teaching game development with hands-on server management experience
- Content creators running community servers with viewer engagement metrics and uptime dashboards

## Prerequisites

- Docker host with minimum 2GB RAM (4GB+ recommended for multiple game servers)
- UDP port 27015 and TCP ports 80, 3000, 9090 available for game server and web interface access
- Basic understanding of game server configuration files and LinuxGSM command structure
- Knowledge of Prometheus metrics and PromQL for custom monitoring queries
- 50GB+ available disk space for game files, logs, and metrics storage depending on game selection
- Understanding of NGINX configuration for SSL certificate setup and domain routing

## docker-compose.yml

```yaml
services:
  gameserver:
    image: gameservermanagers/linuxgsm-docker:latest
    environment:
      GAMESERVER: ${GAMESERVER}
      LGSM_GITHUBUSER: ${LGSM_GITHUBUSER:-GameServerManagers}
      LGSM_GITHUBREPO: ${LGSM_GITHUBREPO:-LinuxGSM}
      LGSM_GITHUBBRANCH: ${LGSM_GITHUBBRANCH:-master}
    ports:
      - "27015:27015/udp"
      - "27015:27015/tcp"
    volumes:
      - serverfiles:/home/linuxgsm/serverfiles
      - lgsm:/home/linuxgsm/lgsm
      - log:/home/linuxgsm/log
    networks:
      - gameserver-net
    restart: unless-stopped

  prometheus:
    image: prom/prometheus:latest
    ports:
      - "9090:9090"
    volumes:
      - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
      - prometheus_data:/prometheus
    networks:
      - gameserver-net
    restart: unless-stopped

  grafana:
    image: grafana/grafana:latest
    ports:
      - "3000:3000"
    environment:
      GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_PASSWORD}
    volumes:
      - grafana_data:/var/lib/grafana
    networks:
      - gameserver-net
    restart: unless-stopped

  nginx:
    image: nginx:alpine
    ports:
      - "80:80"
    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf:ro
    depends_on:
      - grafana
    networks:
      - gameserver-net
    restart: unless-stopped

volumes:
  serverfiles:
  lgsm:
  log:
  prometheus_data:
  grafana_data:

networks:
  gameserver-net:
    driver: bridge
```

## .env

```bash
# Game Server Type (csgoserver, arkserver, etc.)
GAMESERVER=csgoserver

# Grafana
GRAFANA_PASSWORD=secure_grafana_password

# LinuxGSM
LGSM_GITHUBUSER=GameServerManagers
LGSM_GITHUBREPO=LinuxGSM
LGSM_GITHUBBRANCH=master
```

## Usage notes

- Supports 100+ game servers
- Grafana monitoring at http://localhost:3000
- Change GAMESERVER variable for different games
- Use ./linuxgsm.sh for server management commands

## Troubleshooting

- Game server fails to start: Check GAMESERVER environment variable matches LinuxGSM supported game codes exactly
- Grafana shows no metrics data: Verify Prometheus is successfully scraping targets at http://localhost:9090/targets
- LinuxGSM commands hang during execution: Increase container memory limits as some games require significant RAM during installation
- Players cannot connect to game server: Ensure UDP port 27015 is properly forwarded and not blocked by host firewall
- Prometheus metrics missing after container restart: Check that prometheus_data volume has proper write permissions for UID 65534
- NGINX 502 errors accessing Grafana: Confirm Grafana container is healthy and accessible on port 3000 within Docker network

