Wiki.js: OSS Wiki Software Self-host Wiki.js with Pigsty-managed PostgreSQL as its backend database.
Public Demo: http://wiki.pigsty.cc
The current Compose uses the untagged requarks/wiki image. Stable 2.x releases are maintained in requarks/wiki-v2 ; the original requarks/wiki repository contains 3.x Beta releases. The image resolved to 2.5.316 during validation on 2026-10-08. Record and verify the actual image version before production upgrades.
TL; DR
cd ~/pigsty/app/wiki && docker compose up -dPostgres Preparation
# postgres://dbuser_wiki:[email protected] :5432/wiki
- { name : wiki, owner : dbuser_wiki, revokeconn : true , comment : wiki the api gateway database }
- { name : dbuser_wiki, password : DBUser.Wiki , pgbouncer : true , roles : [ dbrole_admin ] }
bin/pgsql-user pg-meta dbuser_wiki
bin/pgsql-db pg-meta wiki Configuration
services :
wiki :
container_name : wiki
image : requarks/wiki
environment :
DB_TYPE : postgres
DB_HOST : 10.10.10.10
DB_PORT : 5432
DB_USER : dbuser_wiki
DB_PASS : DBUser.Wiki
DB_NAME : wiki
restart : unless-stopped
ports :
- "9002:3000" Access Default Port for wiki: 9002
infra_portal :
wiki : { domain : wiki.pigsty.io, endpoint : "127.0.0.1:9002" }
./infra.yml -t nginx_config,nginx_reload -l infra Was this page helpful?
Yes
No
Thanks—your feedback helps us improve this page.
What got in the way? (optional)
Missing information
Incorrect or outdated
Steps did not work
Hard to understand
Change response