← Tutte le guide
Wiki.js
A modern, extensible wiki engine with a Markdown/visual editor, fine-grained permissions, and built-in support for multiple authentication and storage backends.
Questa guida è redatta a partire dalla documentazione ufficiale di Wiki.js, linkata sopra — verifica sempre lì i nomi esatti di pacchetti/versioni prima di eseguire questi comandi su un server di produzione, poiché le versioni della distribuzione e del progetto cambiano nel tempo.
1Create a docker-compose.yml
services: db: image: postgres:15-alpine environment: POSTGRES_DB: wiki POSTGRES_PASSWORD: wikijsrocks POSTGRES_USER: wikijs logging: driver: none restart: unless-stopped volumes: - db-data:/var/lib/postgresql/data wiki: image: ghcr.io/requarks/wiki:2 depends_on: - db environment: DB_TYPE: postgres DB_HOST: db DB_PORT: 5432 DB_USER: wikijs DB_PASS: wikijsrocks DB_NAME: wiki restart: unless-stopped ports: - "80:3000" volumes: db-data:Change POSTGRES_PASSWORD/DB_PASS from the example before using this in production.
2Start Wiki.js
docker compose up -d3Complete the setup wizard
Open the site and follow the wizard to create the initial administrator account.
open http://localhost