Skip to content

Instantly share code, notes, and snippets.

@shawngmc
Created December 22, 2017 00:56
Show Gist options
  • Select an option

  • Save shawngmc/3c126976c8bdf2949cff9e6a2e40d741 to your computer and use it in GitHub Desktop.

Select an option

Save shawngmc/3c126976c8bdf2949cff9e6a2e40d741 to your computer and use it in GitHub Desktop.
Wiki.js docker command & basic config
# Docker command to start it
docker run -d \
-p 3000:3000 \
-v /localdir/on/mybox/wikijs/config.yml:/var/wiki/config.yml \
-e "WIKI_ADMIN_EMAIL=me@myemail.com" \
-e "VIRTUAL_HOST=wiki.mysite.com" \
-e "LETSENCRYPT_HOST=wiki.mysite.com" \
-e "LETSENCRYPT_EMAIL=me@myemail.com" \
--name wikijs \
requarks/wiki
# Last 3 env vars are for the auto-configuring nginx proxy I use.
---------------------------------------------
Relevant snippet of my config.yml; I can give more on request
# ---------------------------------------------------------------------
# Full public path to the site, without the trailing slash
# ---------------------------------------------------------------------
# INCLUDE CLIENT PORT IF NOT 80/443!
host: https://wiki.mysite.com
# ---------------------------------------------------------------------
# Port the main server should listen to (80 by default)
# ---------------------------------------------------------------------
# To use process.env.PORT, comment the line below:
port: 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment