- Docker
- A MongoDB database server (either running inside another container or on a remote machine)
- Create a copy of the sample config file on your host.
- Modify the config file with your own settings.
- Create a copy of the sample Dockerfile.
- Replace the
WIKI_ADMIN_EMAILparameter value with the email of the administrator account. This account will be created when run the first time. - Replace the
your-config.ymlvalue with the name of your config file created earlier. This file must be located in the same folder as your Dockerfile if not providing the full path. It will be copied inside your docker container. - Change the
EXPOSEport to match the port entered in your config.yml file.
From a command prompt in the same folder as your Dockerfile, execute the following command to build your Dockerfile:
sudo docker build -t wiki .It's now time to run the container from the image created in the previous step:
sudo docker run -p 8080:3000 wikiThe -p parameter above is optional. Define it if you want to re-map the exposed port to something else.
An administrator account is created the first time you run the container. The default password is admin123. Change it upon login!