callofduty4x/cod4x18-server
https://github.com/callofduty4x/CoD4x_Server
585
So far only tested on linux!
To run the server several mounts must be created. See below for an example.
MNT_ZONE="-v /home/cod/zone:/cod4x-server-base/zone:ro"
docker run -d -e CONFIG=config/_server.cfg -e ARGS="+set developer 1" $MNT_MAIN $MNT_ZONE -p 1337:28960/udp callofduty4x/cod4x18-server ```
### more complete example for a modded server:
```MNT_MAIN="-v /home/cod/main:/cod4x-server-base/main:ro"
MNT_ZONE="-v /home/cod/zone:/cod4x-server-base/zone:ro"
MNT_PLUGINS="-v /home/cod/plugins:/cod4x-server/plugins:ro"
MNT_MODS="-v /home/cod/mods:/cod4x-server/mods:ro"
MNT_MAPS="-v /home/cod/data/usermaps:/cod4x-server/usermaps:ro"
MNT_CONFIG="-v /home/cod/config/:/cod4x-server/main/config:ro"
docker run -d -e FS_GAME=mods/pml220 -e CONFIG=config/promod.cfg $MNT_MAIN $MNT_ZONE $MNT_CONFIG $MNT_PLUGINS $MNT_MODS $MNT_MAPS -p 1337:28960/udp callofduty4x/cod4x18-server```
### the container has several environment variables to set commandline parameters
MAX_PLAYERS maximum players on the server
MAIN_SHARED if you dont know, you dont need it
FS_GAME to set a mod
CONFIG to set a cfg file that is executed after starting the server
ARGS can contain any commandline parameters
docker pull callofduty4x/cod4x18-server