Wiki.js Installation
Install Wiki.js (Docker + SQLite) on Ubuntu.
- Create a /wikijs/ directory and /wikijs/data/ sub-directory. Change the permission of the /data/ directory to 777. This is required else SQLite will mount as readonly.
- Start a Wiki.js docker container. This will create a default SQLite database:
docker run -p 2999:3000 --name wikijs --rm -e "DB_TYPE=sqlite" ghcr.io/requarks/wiki:2 - Navigate to the server's 2999 port from a browser and complete the installation.
- Copy the SQLite database to the host, rename and change the permission:
docker cp wikijs:/wiki/undefined ./
mv undefined wikijs.db
chmod 666 wikijs.db
docker stop wikijs - Start a new Wiki.js docker container, this time mounting the volume and passing in the SQLite database. Run this command from the /wikijs directory:
docker run -d -p 2999:3000 --name wikijs --rm -e "DB_TYPE=sqlite" -e "DB_FILEPATH=/data/wikijs.db" -v $(pwd)/data:/data ghcr.io/requarks/wiki:2
Member discussion