Docker Compose file for Wiki.js with PostgreSQL backend
Go to file
James c687a571b1 add images and Docker hub links 2022-03-15 17:49:04 +00:00
.env.example add compose file and env example 2022-03-15 17:41:01 +00:00
.gitignore add compose file and env example 2022-03-15 17:41:01 +00:00
README.md add images and Docker hub links 2022-03-15 17:49:04 +00:00
docker-compose.yaml add compose file and env example 2022-03-15 17:41:01 +00:00

README.md

Wiki.js (Docker Compose)

Docker Compose file for Wiki.js with PostgreSQL backend

Docker Images Used

image link
requarks/wiki https://hub.docker.com/r/requarks/wiki
postgres https://hub.docker.com/_/postgres

Prerequisites

  1. Docker
  2. Docker Compose
  3. A reverse proxy on its own Docker network (optional)

Reverse Proxy Docker Network

This Docker Compose file assumes you have a reverse proxy (like Nginx) in a Docker container on another Docker network. If you are not using a reverse proxy or do not wish to use the Docker network to connect the reverse proxy, you can set the DOCKER_PROXY_EXT environment variable to false in your .env file. You may also need to expose the HTTP port on the wiki service.

Setup

  1. Create a copy of .env.example:
cp .env.example .env
  1. Replace the DOCKER_PROXY_NETWORK variable with the Docker network where your reverse proxy sits (see Reverse Proxy Docker Network)

  2. Replace VOLUME_PATH variable if you wish to change where volume data is stored

  3. Modify other variables as needed

  4. Create the following required secrets files (you should consider restricting access to these files):

  • secrets/postgres_password.txt
  1. Bring up the containers!
sudo docker-compose -p wiki up -d
  1. Browse to the Wiki.js server and complete initial setup