These are some guides for various use.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.7 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. # Mordhau
  2. ## Setup Server
  3. ### Docker
  4. The official container and documentation was made by [tetricz](https://hub.docker.com/r/tetricz/mordhau-server).
  5. #### Environment-variables
  6. Set the following variables with the -e tag.
  7. | Name | Usage | Default |
  8. | ---- | ---------------------------------------------------- | ------- |
  9. | QUERYPORT | port for query mordhau | |
  10. | GAME\_PORT | port for mordhau game | |
  11. | BEACONPORT | port for mordhau beacon | |
  12. | STEAM\_CONNECT | set to tell if you want to connect to steam | |
  13. | STEAMID64 | set the serve owner steamid | |
  14. | UID | users userid to run | |
  15. | GID | users groupid to run | |
  16. | GAME\_MODE | specify mordhau game mode | |
  17. | PLAYER\_COUNT | set a playercount limit | |
  18. | SERVER\_NAME | set a servername | |
  19. | SERVER\_PASSWORD | set a password | |
  20. | ADMIN\_PASSWORD | set an admin password | |
  21. #### Volumes
  22. Set the following volumes with the -v tag.
  23. | Volume-Name | Container mount | Description |
  24. | ---------------- | -------------------- | ---------------------------------------- |
  25. | mordhau | /serverdata/mordhau | storage for mordhau server relevant data |
  26. | mordhau\_steamcmd | /serverdata/steamcmd | storage for steam related data |
  27. #### Ports
  28. Set the following ports with the -p tag.
  29. | Container Port | Recommended outside port | Protocol | Description |
  30. | -------------- | ------------------------ | -------- | ----------------- |
  31. | 7777 | 7777 | UDP | mordhau internal |
  32. | 15000 | 15000 | UDP | mordhau internal |
  33. | 27015 | 27015 | UDP | mordhau internal |
  34. #### Start
  35. ```
  36. #!/bin/sh
  37. docker pull tetricz/mordhau-server
  38. docker run --name=mordhau \
  39. --restart=unless-stopped \
  40. -p 27015:27015/udp \
  41. -p 7777:7777/udp \
  42. -p 15000:15000/udp \
  43. -v mordhau:/serverdata/mordhau \
  44. -v mordhau_steamcmd:/serverdata/steamcmd \
  45. -e QUERYPORT=27015 \
  46. -e GAME_PORT=7777 \
  47. -e BEACONPORT=15000 \
  48. -e STEAM_CONNECT=True \
  49. -e STEAMID64="tmp" \
  50. -e UID=99 \
  51. -e GID=100 \
  52. -e GAME_MODE=SKM \
  53. -e PLAYER_COUNT="16" \
  54. -e SERVER_NAME="tmp" \
  55. -e SERVER_PASSWORD="tmp" \
  56. -e ADMIN_PASSWORD="tmp" \
  57. tetricz/mordhau-server
  58. ```
  59. #### Stop
  60. ```
  61. #/bin/sh
  62. docker stop mordhau
  63. docker rm mordhau
  64. ```