WikiJA-docker sets up a container running WikiJS based on variables provided. It will automatically start wikiJS using the ENV variables provided.
docker build https://github.com/ankh2054/wiki-js.git -t wikijs
- WIKI_HOST = Full public path to the site, without the trailing slash
- WIKI_TITLE = Title of the WIKI
- WIKI_PORT = Port for WikiiJS to listen on
docker run --name wikijs -d \
-e VIRTUAL_HOST=wikijs.domain.com \
-e WIKI_HOST=http://wikijs.domain.com \
-e WIKI_TITLE="Wiki Title" \
-e WIKI_PORT=3000 \
wikijs \
nginx-proxy sets up a container running nginx and docker-gen. docker-gen generates reverse proxy configs for nginx and reloads nginx when containers are started and stopped.
See Automated Nginx Reverse Proxy for Docker for why you might want to use this.
To run it:
$ docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro etopian/nginx-proxy
- Create github ENV variable to auto configure github account within config.yml
- WikiJS does not automatically create admin user, so you need to frsit run the following to create.
- Automatically create admin user and add to MongoDB database.
- Add Github variables to auto create github integration for article creation.