This is a template for running a nwnxee server inside of docker, using docker-compose for orchestration with sql and/or redis.
- [git] (to clone this repo)
- [docker] (version
1.13.0+) - [docker-compose] (version
1.10.0+to support Compose file version3.0)
Clone this repo
$ git clone https://github.com/Urothis/nwnxee-template.gitRename the configuration files
$ cd /path/to/repo
$ cp config/db.env.example config/db.env
$ cp config/nwserver.env.example config/nwserver.envStart the server
$ cd /path/to/repo
$ docker-compose upThis will spin up an NWN server and all other services defined in the docker-compose.yml.
If you want to run the container in the background, use the -d option. docker-compose up -d
Stop the server
$ cd /path/to/repo
$ docker-compose downUpdate nwn:ee/nwnxee
$ docker pull nwnxee/unified:latestLogs
- Log files are created when compose goes up.
./logs/nwserverError1.txt
./logs/nwserverLog1.txtSettings for the server can be changed by editing the config/nwserver.env file in your repo.
- For further nwn:ee configuration, see the nwserver documentation.
- For further nwnxee configuration, see the nwnxee documentation.
Module
The bundled module DockerDemo is loaded by default. To load a different module, say mymodule, place the module file in /path/to/repo/server/modules/ as mymodule.mod and change the environment variable in /path/to/repo/config/nwserver.env to NWN_MODULE=mymodule.