Run a streamlined Call of Duty 1 server within a Docker container, allowing you the flexibility to choose the desired version.
From the project root:
- Clone this repository on your host machine with the name you want.
- e.g
git clone https://github.com/bcortezf/cod1server.git tdm, tdm will be the folder name
- e.g
- Install your desired version with
./install.sh <version>. Available versions:1.11.21.31.41.5 - (Optional) Edit the config file located in
main/myserver.cfgto suit your needs, you can change server slots, server name, etc.. - (Optional) You can modify
docker-compose.ymlin order to change some parameters.- in the
portsdirective, you can change the port of the server. (e.g,20010:28960/tcpmeans that the port will be20010) - in the
commanddirective you can modify the execution parameters.
- in the
From the project root:
docker-compose up -dFrom the project root you can:
- Restart server:
docker-compose restart- Tail the server logs:
docker-compose logs cod1server # being cod1server the name of the container- Stop server completely
docker-compose downserver_1 | Sys_Error: Couldn't load default_mp.cfg. Make sure Call of Duty is run from the correct folder.
Make sure you have files in your main folder. For some reason, you dont have default_mp.cfg.