.env.example | ||
.gitignore | ||
docker-compose.yaml | ||
README.md |
Wiki.js (Docker Compose)
Docker Compose file for Wiki.js with PostgreSQL backend
Prerequisites
- Docker
- Docker Compose
- 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
- Create a copy of
.env.example
:
cp .env.example .env
-
Replace the
DOCKER_PROXY_NETWORK
variable with the Docker network where your reverse proxy sits (see Reverse Proxy Docker Network) -
Replace
VOLUME_PATH
variable if you wish to change where volume data is stored -
Modify other variables as needed
-
Create the following required secrets files (you should consider restricting access to these files):
secrets/postgres_password.txt
- Bring up the containers!
sudo docker-compose -p wiki up -d
- Browse to the Wiki.js server and complete initial setup