mirror of
https://github.com/runyanjake/olomana.git
synced 2026-06-25 08:04:52 -07:00
Docmost
Docmost is an open-source collaborative documentation and wiki software.
Accessible at https://documentation.whitney.rip.
Setup
-
Copy the example env file and fill in real values:
cp .env.example .env -
Generate secrets:
# App secret (32+ characters) openssl rand -hex 32 # Postgres password openssl rand -hex 16 -
Start the stack:
docker compose up -d
Health Check
https://documentation.whitney.rip/api/health
Creating Users
Cannot be created manually, have to do manually via db insert.
- Exec to container
docker exec -it docmost-db-1 psql -U docmost -d docmost
- Obtain WORKSPACE_ID from the users table. Generate random password
select workspace_id from users;
- Exit psql and generate random passord.
docker exec docmost-docmost-1 node -e "console.log(require('bcrypt').hashSync('REPLACE_PASSWORD', 12))"
- Insert
INSERT INTO users (name, email, password, role, workspace_id, email_verified_at) VALUES ('Jake', 'jake@runyan.dev', '$2b$10$BEiObFC7osNTuY9GcQvV6eCU6vHKQjwohrr/uPPBFzlO27jLvQCHy', 'admin', '019d9dbf-daf5-7652-90d6-33ee72c883a1', now());