You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You also require the base game to run a server. Copy every .iwd file in `cod4directory/main/` to `serverdirectory/main/`.
@@ -30,13 +30,50 @@ Now you can run the server with `./cod4x18_dedrun +map mp_killhouse`. If you are
30
30
31
31
You will need a token if you want your server to be listed on the [Cod4x Master List](https://cod4master.cod4x.ovh). You can generate a token [here](https://cod4master.cod4x.ovh/index.php?token_generator=true).
32
32
33
-
Once a token is generated add it to the sv_authtoken cvar in server.cfg or command-line parameters by using `sv_authtoken "mytokenhere`
33
+
Once a token is generated add it to the sv_authtoken cvar in server.cfg or command-line parameters by using `sv_authtoken "mytokenhere"`
34
34
35
35
Hint: you probably want to run the server on a separate user. Please don't run the server (any server) as root. That would be a major security threat.
36
36
37
37
A more detailed server tutorial is available on [our wiki](https://github.com/callofduty4x/CoD4x_Server/wiki/Server-setup).
38
38
[Also read about new banlists here](https://github.com/callofduty4x/CoD4x_Server/wiki/Banlists-in-version-15.9--and-other-changes)
39
39
40
+
## Setting up Call of Duty 4 Server with CoD4X in Docker
41
+
42
+
Official images are now availabe on [Docker Hub](https://hub.docker.com/r/alexandercurl/cod4x-server)
43
+
44
+
Setting up with `docker compose` example config, also can be found in the repository:
45
+
```
46
+
services:
47
+
cod4x-server:
48
+
container_name: cod4x-server
49
+
hostname: cod4x-server
50
+
image: alexandercurl/cod4x-server:latest
51
+
ports:
52
+
- "28960:28960/tcp"
53
+
- "28960:28960/udp"
54
+
# Volumes store your data between container upgrades
55
+
volumes:
56
+
- "./main:/home/user/cod4/main"
57
+
- "./main_shared:/home/user/cod4/main_shared"
58
+
- "./zone:/home/user/cod4/zone"
59
+
- "./mods:/home/user/cod4/mods"
60
+
- "./plugins:/home/user/cod4/plugins"
61
+
- "./usermaps:/home/user/cod4/usermaps"
62
+
restart: unless-stopped
63
+
```
64
+
65
+
Running with `docker run`:
66
+
```
67
+
docker run -d --name cod4x-server --restart=unless-stopped \
0 commit comments