ankh2054 / wiki-js

WikiJS docker container with ENV variables for automated setup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

License MIT

WikiJS

WikiJA-docker sets up a container running WikiJS based on variables provided. It will automatically start wikiJS using the ENV variables provided.

To Build from GIT

docker build https://github.com/ankh2054/wiki-js.git -t wikijs

To Start WikiJS container

ENV Variables

  • 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
  • WIKI_ADMIN_EMAIL = WikiJS admin email
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 \
-e WIKI_ADMIN_EMAIL=admin@example.com \
wikijs \

NGINX-PROXY

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.

Nginx-proxy Usage

To run it:

$ docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro etopian/nginx-proxy

To Do

  1. Create github ENV variable to auto configure github account within config.yml
  2. 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.

About

WikiJS docker container with ENV variables for automated setup


Languages

Language:Shell 82.5%Language:Dockerfile 17.5%