Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ankh2054/wiki-js
WikiJS docker container with ENV variables for automated setup
https://github.com/ankh2054/wiki-js
dockerfile wiki
Last synced: 8 days ago
JSON representation
WikiJS docker container with ENV variables for automated setup
- Host: GitHub
- URL: https://github.com/ankh2054/wiki-js
- Owner: ankh2054
- Created: 2017-11-08T09:53:03.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-19T09:12:48.000Z (almost 6 years ago)
- Last Synced: 2024-08-01T13:38:32.646Z (3 months ago)
- Topics: dockerfile, wiki
- Language: Shell
- Homepage:
- Size: 43.9 KB
- Stars: 7
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![License MIT](https://img.shields.io/badge/license-MIT-blue.svg)
# 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 [email protected] \
wikijs \
```
# NGINX-PROXYnginx-proxy sets up a container running nginx and [docker-gen][1]. docker-gen generates reverse proxy configs for nginx and reloads nginx when containers are started and stopped.
See [Automated Nginx Reverse Proxy for Docker][2] 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
[1]: https://github.com/etopian/docker-gen
[2]: http://jasonwilder.com/blog/2014/03/25/automated-nginx-reverse-proxy-for-docker/## 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.