wiki.js podman script

Recently I wanted to test wiki.js on my CentOS 8 Stream VM and ran into all kinds of problems. I found a helping script at but it needed some refinement and correction.

Remember, this is for quick testing only. Especically the chmod 777 is something you do not want to do on a production system.

export DATA=$PWD
export PASSWD=zo03gaeCi1
mkdir -p $DATA/wiki/pgdata 
mkdir -p $DATA/wiki/data
chown -R 1000:1000 wiki
chmod -R 777 wiki
podman pod create --name wiki -p 3001:3000
podman run -d --pod wiki --name wiki_db -e POSTGRES_PASSWORD=$PASSWD -e POSTGRES_USER=wiki -e POSTGRES_DB=wiki -v $DATA/wiki/pgdata:/var/lib/postgresql/data:Z
podman run -d --pod wiki --name wiki_srv -e DB_TYPE=postgres -e DB_HOST=wiki -e DB_PORT=5432 -e DB_USER=wiki -e DB_PASS=$PASSWD -e DB_NAME=wiki -v $DATA/wiki/data:/wiki/data:Z

The pod is created permanently (so the data you have entered for testing will not be lost after stopping / quitting / rebooting). After you are done with testing you can stop it with:

podman pod stop wiki

Aaaand if you want to do more testing you can start it up again with:

podman pod start wiki