|
OpenMoHAA 0.83.0
|
OpenMoHAA dedicated server can run inside a container.
In the root of the project repository, you'll find a folder named docker. Copy your MOH:AA directory inside docker/server/full/game. The directory structure should look like this:
You can place custom files such as the server.cfg file, inside docker/server/full/game/home/main.
/usr/local/share/mohaa./usr/local/share/mohaa/home.To build the base and full Docker images, use the following commands:
To run the Docker container, use:
💡 You can also use a Docker Compose file for easier management. Check out the docker/server/docker-compose-example.yaml file for an example.
GAME_PORT: Specifies the game port to use (default: 12203). The container and the host port must match, as Gamespy sends the game port to use.GAMESPY_PORT: Specifies the Gamespy port to use (default: 12300). The container and the host port must match because Gamespy sends this port to the master server.If you want to modify the server.cfg file without rebuilding the container, you can mount a folder for configuration files. Here's how:
docker/server, create a config/settings folder.server.cfg file inside config/settings.This will mount your settings folder directly into the container, allowing server.cfg to be edited without needing to rebuild the image.