Docker image which provides a full Eressea installation to host a local game.
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.

105 lines
3.8 KiB

3 weeks ago
  1. # Eressea Docker
  2. This Docker image will provide a full [Eressea](https://wiki.eressea.de/index.php/Hauptseite) installation to host an own game.
  3. More details about Eressea find on
  4. - their [homepage](https://www.eressea.de/)
  5. - in [wiki](https://wiki.eressea.de/index.php/Hauptseite) you find the game rules and a lot of other information
  6. - and finally the source code, which is hosted on [GitHub](https://github.com/eressea)
  7. ## Volumes
  8. By default, the image expects a single volume, located at `/data`. It will hold
  9. * configuration files
  10. * log files
  11. * e-mail
  12. * game data
  13. * game data backups
  14. ## General
  15. This image provides a command line interface. To see all possible commands, run the `help` command:
  16. ```
  17. docker run -it --rm \
  18. -v /path/to/my/local/eressea/folder:/data \
  19. jacsid/eressea help
  20. ```
  21. ## Initial setup
  22. ### Initiailze volume
  23. The empty `/data` volume needs to be initialzed. Without this step, none of the provided commands will work.
  24. First, it is necessary to create the ini files:
  25. ```
  26. docker run -it --rm \
  27. -v /path/to/my/local/eressea/folder:/data \
  28. jacsid/eressea generate -i \
  29. --game_name=MyOwnEressea \
  30. --rules=e3 \
  31. --from=gameserver@myhoster.com \
  32. --realname="MyOwnEressea\ Game\ Server" \
  33. --imap_server=imap.myhoster.com \
  34. --imap_user=imapuser \
  35. --imap_pass=imappwd \
  36. --imap_port=993 \
  37. --smtp_server=smtp.myhoster.com \
  38. --smtp_user=smtpuser \
  39. --smtp_pass=smtppwd \
  40. --smtp_port=587
  41. ```
  42. To get further details, call `generate` command with option `-h`
  43. Afterwards, create the relevant game folders:
  44. ```
  45. docker run -it --rm \
  46. -v /path/to/my/local/eressea/folder:/data \
  47. jacsid/eressea generate -g
  48. ```
  49. It is possible to combine both steps into one call by combining options `-i` and `-g`.
  50. ### Initialize game
  51. Now in `/data/game-1` a file called `newfactions` is available. Enter all players who will join the game. Each player goes into a seperate line:
  52. ```
  53. test.player@hotmail.com elf de
  54. seppl@gmx.at orc en
  55. [...]
  56. ```
  57. The entries, separated by one white space character, are email, race, and language. The language is either "de" for German or "en" for English. This file is read automatically when the game editor starts (see also [GM-Guide](https://github.com/eressea/server/wiki/GM-Guide#adding-players) on Eressea [GitHub](https://github.com/eressea/server) wiki).
  58. Now create the game map and seed the new players.
  59. ```
  60. docker run -it --rm \
  61. -v /path/to/my/local/eressea/folder:/data \
  62. jacsid/eressea map -n -w 50 -e 50 -s
  63. ```
  64. This command will create a new 50x50 map (option `-n`, `-w`, `-e`). In general, the `map` command opens the game map editor. With the option `-s` it will automatically be saved, when you exit the editor with key `Q`.
  65. On the game map, seed all new players via key `s`. To see where other players are located, press `h` followed by `p`.
  66. ### Send first game reports
  67. After players were seeded to the map, run the first game turn which sends the intial reports to the players.
  68. ```
  69. docker run -it --rm \
  70. -v /path/to/my/local/eressea/folder:/data \
  71. jacsid/eressea run
  72. ```
  73. ## Day by day use
  74. The players send their turn commands via email (see [initialize](#initiailze-volume) chapter above). Use the command `mail` to process incoming e-mails.
  75. Please note, that only Eressea mails are processed, **all other e-mails are deleted from server**!
  76. You maybe want to fetch e-mails (option `-f`) during the day and once a night you check the new game orders (option `-c`). But it is also possible to combine the options in one call. Use e.g. `cron` to automatize the calls.
  77. ```
  78. docker run -it --rm \
  79. -v /path/to/my/local/eressea/folder:/data \
  80. jacsid/eressea mail -f -c
  81. ```
  82. And somewhen the next game turn is processed with command `run`:
  83. ```
  84. docker run -it --rm \
  85. -v /path/to/my/local/eressea/folder:/data \
  86. jacsid/eressea run
  87. ```