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
@@ -30,7 +30,7 @@ Modifying settings in `serversettings.con`, `modnanager.con` or `maplist.con` is
30
30
## Prerequisites
31
31
32
32
* A host running Linux or Windows. The Docker setup is tested on Linux containers
33
-
* A Battlefield 2 server with ModManager and the [mm_webadmin.py](https://github.com/nihlen/bf2-docker#bf2hub-pb-mm-webadmin) module
33
+
* A Battlefield 2 server with ModManager and the [mm_webadmin.py](https://github.com/nihlen/bf2-docker/tree/master/images/bf2hub-pb-mm-webadmin) module
34
34
35
35
## Usage
36
36
@@ -41,16 +41,21 @@ Build a Battlefield 2 server image with the required ModManager module:
Then start up webadmin and the Battlefield 2 servers by running this command in the same directory as the `docker-compose.yml` and `appsecrets.json` files.
45
50
```sh
46
-
docker-compose up -d --remove-orphans
51
+
dockercompose up -d --remove-orphans
47
52
```
48
53
49
54
If you need to update the game server image you can rerun the build command, and if you need to update the webadmin image you can run
Create `Configuration/appsecrets.json` using the template further down, then run `BF2WebAdmin.Server.exe` and navigate to http://localhost:5000.
64
69
65
-
### Docker Compose Example
66
-
67
-
This is an example of webadmin and two Battlefield 2 servers running on the same host.
68
-
69
-
If you want to display the country of the players when joining then you need a free GeoIP database file from MaxMind and place `GeoLite2-Country.mmdb` in the same directory as `appsecrets.json`. Then bind mount it the same way in the volume section of the bf2-webadmin service `- "./GeoLite2-Country.mmdb:/app/GeoLite2-Country.mmdb"`.
This is an example of webadmin and two Battlefield 2 servers running on the same host.
4
+
5
+
If you want to display the country of the players when joining then you need a free GeoIP database file from MaxMind and place `GeoLite2-Country.mmdb` in the same directory as `appsecrets.json`. Then bind mount it the same way in the volume section of the bf2-webadmin service `- "./GeoLite2-Country.mmdb:/app/GeoLite2-Country.mmdb"`.
6
+
7
+
`ServerSettings:IpAddress` public IP of the host
8
+
9
+
Note: The ports, aliases and RCON passwords need to match between the game server (docker-compose file) and the appsettings/appsecrets.
10
+
11
+
## Build container images
12
+
13
+
Build a BF2 game server image and a BF2 webadmin image needed for the example. Run it in the root folder of this repo.
0 commit comments