677 words
3 min read

Install Quake 3 Server Using Docker Compose

By · Solutions Architect · Docker Captain · IBM Champion
Cover image for the post 'Install Quake 3 Server Using Docker Compose'

This is a step-by-step guide to running a Quake 3 server with Docker Compose. No fluff. Just the commands and the order to run them in.

QuakeJS runs Quake 3 in the browser. It uses WebGL to render the graphics, so players don’t install anything. That last part matters more than it sounds. You stand up a server, hand someone a URL, and they’re in.

TIP

Architecture Context

Choose a self-hosted Quake III server when you need full control over game configuration, custom maps, and network settings. Cloud game hosting services offer managed alternatives with automatic scaling but limited mod support. Self-hosting is the right approach when you need a dedicated server for LAN parties, competitive play, or custom game modes without recurring hosting fees.

💾 You can find the repository used in this guide on GitHub.

heyvaldemar
/
quake3-server-docker-compose
Waiting for api.github.com...
0
0
N/A
Waiting...
CAUTION

You will need A-type records in the external DNS zone, which point to the IP address of your server where Quake 3 Server is installed. If you have created these records recently, you should wait before starting the installation of the services. Full replication of these records between DNS servers can take from a few minutes to 48 hours or even longer in rare cases.

CAUTION

Alternatively, you can use the public static IP address of your server to connect directly.

IMPORTANT

Docker Engine and Docker Compose must be installed on the server.

For a step-by-step guide on installing Docker Engine on Ubuntu Server, see Install Docker Engine and Docker Compose on Ubuntu Server

IMPORTANT

OpenSSH must be installed on the server, and port 22 must be open to be able to connect to the server using the SSH protocol.

To install OpenSSH on the server you can use the command:

Terminal window
sudo apt install openssh-server
NOTE

To connect to the server from a Windows system, you can use tools like PuTTY or MobaXterm.

NOTE

This guide walks you through connecting to a server with the iTerm2 terminal emulator on macOS.

CAUTION

You will need to open the following TCP ports for access to the services:

  • TCP port 80 - for accessing Quake 3 via the web interface.
  • TCP port 27960 - for Quake 3 gaming servers, used for connecting clients to the server.

Connect to the box where Quake 3 Server is going to live.

The repository holds the configuration files. Everything the server needs to come up is in there. Clone it first.

You can clone the repository using the command:

Terminal window
git clone https://github.com/heyvaldemar/quake3-server-docker-compose.git

Install Quake 3 Server Using Docker Compose - Step 1

Navigate to the directory with the repository using the command:

Terminal window
cd quake3-server-docker-compose

Install Quake 3 Server Using Docker Compose - Step 2

Now edit the variables in .env and server.cfg to match your setup.

NOTE

The .env and server.cfg file should be in the same directory as quake3-server-docker-compose.yml.

Start it up with the command:

Terminal window
docker compose -f quake3-server-docker-compose.yml -p quake3-server up -d

Install Quake 3 Server Using Docker Compose - Step 3

To reach Quake 3, open http://quake3.heyvaldemar.net from your workstation. That’s my domain. Swap in the name or IP address of your own server, the one running Quake 3 Server.

Accept the license and click “I agree”.

Install Quake 3 Server Using Docker Compose - Step 4

Have fun.

Install Quake 3 Server Using Docker Compose - Step 5

To connect from a game client, type in the server’s domain name. It has to resolve to the IP address of the host running Quake 3 Server. No domain? Point the client straight at the server’s public static IP instead.

IMPORTANT

If you are using a domain name, ensure that the A records in your DNS zone are correctly set up to point to this IP. If the records were created recently, it is recommended to wait before starting to use the services. The propagation of DNS records can take anywhere from a few minutes to 48 hours or more.

Edited server.cfg? The server won’t pick up the changes on its own. Restart the container that hosts it. The command below does exactly that:

Terminal window
QUAKE3_SERVER_CONTAINER=$(docker ps -aqf "name=quake3-server-quake3-server") \
&& docker container restart $QUAKE3_SERVER_CONTAINER

Once it comes back, your config edits are live. No full shutdown, no downtime to speak of, just a quick bounce of the container.


Vladimir Mikhalev

Docker Captain  ·  IBM Champion  ·  AWS Community Builder

The Verdict — production-tested analysis on YouTube.

The Verdict

Inconvenient truths about shipping in the AI era

Container security, platform engineering, and the agentic shift — tested in production, argued without the hype. The verdict reaches your inbox the moment there's one worth sending.

Related Posts

Same category
  1. 1
    Install ownCloud Using Docker Compose
    Self-Hosting · Learn how to install ownCloud with Docker Compose on Ubuntu using Traefik and Let's Encrypt. Secure, scalable file storage and sharing for your server.
  2. 2
    Install Docmost Using Docker Compose
    Self-Hosting · Learn how to install Docmost using Docker Compose with Traefik and Let's Encrypt. Step-by-step guide for self-hosting a modern documentation platform.
  3. 3
    Install AFFiNE Using Docker Compose
    Self-Hosting · Step-by-step guide to install AFFiNE using Docker Compose with Traefik and Let's Encrypt. Build your open-source productivity platform in minutes.
  4. 4
    Install Homebox Using Docker Compose
    Self-Hosting · Step-by-step guide to install Homebox with Docker Compose and Traefik. Secure your home inventory system with HTTPS using Let's Encrypt.

Random Posts

Random
  1. 1
    Install Homebox Using Docker Compose
    Self-Hosting · Step-by-step guide to install Homebox with Docker Compose and Traefik. Secure your home inventory system with HTTPS using Let's Encrypt.
  2. 2
    Install Bitwarden on Ubuntu Server 22.04 LTS
    Self-Hosting · Learn how to install Bitwarden on Ubuntu Server 22.04 LTS using Docker. Step-by-step instructions for setup, SSL with Let's Encrypt, and secure password storage.
  3. 3
    Install Windows Server 2019 Server Core
    SysAdmin & IT Pro · Step-by-step guide to install Windows Server 2019 Server Core. Learn how to set up a minimal, secure, and efficient Windows Server environment.
  4. 4
    Amazon Q vs DevOps Chaos — Can This AI Fix AWS Faster Than You?
    DevOps & Cloud · Fix AWS issues faster with Amazon Q, the AI assistant built for DevOps. Real-world examples, limitations, and how it compares to ChatGPT.
Install Quake 3 Server Using Docker Compose
https://heyvaldemar.com/install-quake3-server-using-docker-compose/
Author
Vladimir Mikhalev
Published
2024-04-24
License
CC BY-NC-SA 4.0