OrbitDocs is an open-source IT Documentation Platform designed for MSPs, internal IT teams, and system administrators. It serves as a centralized hub for managing assets, credentials, and documentation with multi-organization support.
- Multi-Organization Support: Manage multiple clients or departments with isolation.
- Asset Management: Track servers, workstations, networking gear, and more.
- Credential Vault: Securely store and share passwords with AES-256 encryption.
- Documentation: Write and organize internal wikis using Markdown.
- Document Deletion: Securely remove documentation and files (Admins only).
- Large File Support: Support for document uploads up to 512MB.
- Activity Logs: Audit trail for all changes.
- Modern UI: Clean, dark-mode compatible interface built with TailwindCSS and Alpine.js.
Enhanced the first-time setup experience and resolved UI action failures:
- Installer Robustness Overhaul: The web installer now automatically creates the database (
CREATE DATABASE IF NOT EXISTS) if it doesn't exist. - Migration Timeout Prevention: Increased the PHP execution time limit to 300s for migration and seeding tasks to support slower hardware.
- Resilient
.envSetup: Improved environment variable writing logic with automatic.env.examplefallback and permission checks. - Fixed Asset Actions: Re-engineered the Edit and Delete buttons in the Asset management module, resolving an issue where they were non-functional.
Resolved production schema desync and enhanced reliability for metadata-only updates:
- Formal Schema Migration: Added a version-controlled migration to resolve the
documentableandis_uploadcolumn desync on production environments. - Null-Safe Document Saving: Fixed a crash (Integrity Constraint Violation) when editing documents with null content (e.g., uploaded files).
- Flexible Metadata Edits: Form validation now allows updating document properties (Tags, Category, Status) without requiring a markdown body.
- Cache Synchronization: Updated the Docker entrypoint to include
bootstrap/cachein the sync process, preventing stale code issues after deployments.
Added secure document management and robust permission resolution:
- Document Deletion: Securely remove documentation and associated physical files from storage. Restricted to Super Admins and Organization Admins.
- 512MB Upload Support: Resolved the
413 Request Entity Too Largeerror by consolidating Nginx configurations and increasing limits to 512MB across the entire stack. - Dynamic Gate Resolution: Refactored the internal authorization system to use a dynamic
Gate::afterhook.
Resolved persistent pipeline failures and enhanced the installation experience:
- Stable GitHub Actions: Resolved 25 persistent PHPUnit test failures related to database migration corruption and SQLite driver incompatibilities.
- Real-Time Installer Progress: Added a sleek, Alpine.js-powered progress bar to the web installer with live backend reporting via the
/install/statusendpoint. - Bit-Perfect Migrations: Implemented Base64-mediated file transfers within Docker containers to prevent silent migration file corruption during orchestration.
- Full-Text Search Fix: Native support for SQLite in tests by conditionally disabling unsupported
fullTextindices while maintaining MySQL production performance. - Expanded User Schema: Aligned database schema with core features, adding native support for MFA (
google2fa_secret,mfa_enabled) and granular administrative permissions.
Complete redesign of the installation process to eliminate timeout errors:
- Async Migrations: Database setup now runs as a background process inside the container. The web request returns instantly and the browser polls for status every 3 seconds. This eliminates all Nginx gateway timeouts (504 errors) regardless of how long migrations take.
- Fresh vs Update Split: The Docker entrypoint now distinguishes between fresh installs and updates:
- Fresh install — entrypoint skips migrations; the installer wizard owns the entire setup.
- Existing install — entrypoint runs incremental
migrate --forcein the background on every restart. - Detection uses a
storage/app/installedmarker file written by the installer on completion.
- Better Error Reporting: The installer now shows the exact PHP error message from failed migrations in a detail box, instead of a generic "Server Error" message.
- Idempotent Seeder:
DatabaseSeederusesfirstOrCreatefor asset types, making retries safe.
A comprehensive overhaul of the Docker deployment pipeline to make production deployments reliable:
- Critical Fix — Stale Code on Re-deploy: The entrypoint now uses
rsyncon every container start, so code updates from a rebuilt image are always applied. Previously, the production server permanently ran the first-deployed version of the code. - Critical Fix — MySQL Healthcheck: The DB healthcheck was silently failing on every boot (Docker does not expand
${VARIABLES}in CMD-array format). Fixed to useCMD-SHELL. Theappcontainer now correctly waits for a healthy database before starting. - Security — Debug Files Removed: Development helper scripts (
debug_roles.php,fix_cred_perm.php,force_suspend.php, etc.) have been removed from the repository. They were being baked into the production Docker image. - Startup UX: A branded maintenance page now shows instead of a raw browser 502 error while the app initialises. It auto-refreshes every 8 seconds.
- Dockerfile: Removed unnecessary
nginxfrom the php-fpm container (~50MB saved). Addedrsync. - PHP Config: Fixed Windows CRLF line endings in
local.inithat caused PHP to misread config values.max_execution_timenow correctly set to300sfor all requests. - Environment:
.env.exampleupdated with production-safe defaults (APP_ENV=production,APP_DEBUG=false, correct Docker service names pre-set). - Volumes: Replaced host bind-mount for
storage/logswith a named Docker volume to prevent root-ownership issues on fresh servers.
- Installer Flow: Added a new step to automatically create your first Organization during installation.
- Bug Fixes:
- Resolved "Table already exists" errors during migration.
- Fixed "Column not found: role" error when creating organizations.
- Fixed infinite redirect loop on the Global Dashboard (demo-msp issue).
- Fixed "slug on string" crash when editing documents.
- Document Management: Added support for Tags, Categories, Authors, and Approval Statuses.
OrbitDocs is designed to be installed easily using Docker. We provide two ways to complete your setup:
- Docker Engine & Docker Compose
- 5-10 minutes of time
git clone https://github.com/thilinadias/orbit-docs.git
cd orbit-docs
docker-compose up -d --buildThe system will take a moment to initialize MySQL and set up environment dependencies. You can watch the progress with:
docker-compose logs -f app.
- Navigate to
http://<your-server-ip>in your browser. - The Step-by-Step Wizard will guide you through:
- Environment verification (Automatic)
- Database Setup (Auto-creates your database)
- System Setup (Migrations & Seeding)
- Admin Account Creation
- First Organization Setup
- Network/SSL Configuration
If you prefer the command line or have a slower server, you can run the "heavy lifting" (Database creation & migrations) via terminal:
# Run the robust CLI installer
docker-compose exec app php artisan orbit:installAfter the command finishes:
Navigate to http://<your-server-ip>/install/admin to complete your Admin Account and Organization setup via the GUI.
Once setup is complete, you can log in at: http://<your-server-ip>/login.
Note: If you used the CLI seeder for testing, the default credentials are
admin@orbitdocs.com/password.
For routine updates (code changes, bug fixes):
git pull origin master
docker-compose up -d --buildCode changes from the new image are automatically synced to the running volume on startup. Pending migrations are applied in the background automatically. No manual cache clearing or migration commands needed.
First-time update from a version before v1.1? Run this instead to clear old volumes:
git pull origin master docker-compose down -v docker-compose up -d --build
⚠️ down -vremoves ALL data volumes. Only use this on a fresh install or if you don't mind losing existing data.
App shows "Starting Up" page for a long time This is normal on first boot — the database container takes 30-60 seconds to initialise. The page auto-refreshes every 8 seconds. If it persists beyond 5 minutes:
docker logs orbitdocs-app -f # look for [OrbitDocs] messages
docker ps # check all containers are healthyAfter docker-compose up --build, the site still shows old content
You are likely on a pre-v1.1 version of OrbitDocs. The old entrypoint only seeded the volume once and never applied updates. Upgrade by clearing volumes:
git pull origin master
docker-compose down -v
docker-compose up -d --build
⚠️ down -vremoves data volumes. Back up your data first if needed.
Installer System Setup shows an error The installer's "System Setup" step runs migrations as a background process and polls for status. If it reports an error, the red error-detail box shows the exact PHP error message. Common fixes:
- "Duplicate column" or "Table already exists": A previous failed attempt left the DB in an inconsistent state. Click Retry Setup — the installer wipes the database cleanly before re-running migrations.
- If Retry still fails, run migrations manually inside the container:
Then navigate directly to
docker-compose exec app php artisan migrate:fresh --seed --forcehttp://<your-server-ip>/install/adminto continue the setup.
Default Login Credentials (If Seeder Used)
- Email:
admin@orbitdocs.com - Password:
password
If you prefer to configure the system manually or need to update settings after installation, you can use the following methods.
The Web Installer allows you to upload SSL certificates (.crt and .key). If you need to update them later:
-
Locate the Volume: The certificates are stored in the
orbitdocs_sslDocker volume. You can access this via the host mount path defined indocker-compose.ymlor by copying files into the container.Recommended method (Copy via Docker):
# Copy your new certificate and key to the Web container docker cp your_domain.crt orbitdocs-web:/etc/nginx/ssl/orbitdocs.crt docker cp your_domain.key orbitdocs-web:/etc/nginx/ssl/orbitdocs.key -
Restart Nginx:
docker-compose restart web
To change the domain name after installation:
-
Update .env: Edit the
.envfile in your installation directory and updateAPP_URL.APP_URL=https://new-domain.com
-
Update Nginx Config (If needed): The Nginx configuration is mounted at
./docker/nginx/conf.d/default.conf.- Edit this file to update
server_nameor add manual redirects. - Restart the web container:
docker-compose restart web.
- Edit this file to update
We welcome contributions! Please read CONTRIBUTING.md for details.
To run the application tests, use the following command:
php artisan testThe testing environment is configured to use an in-memory SQLite database (:memory:), providing a fast, isolated environment.
- Deterministic Schema: All migrations (Core, Standard Laravel, and Sanctum) are manually orchestrated in the base
TestCase.phpto ensure a guaranteed healthy schema for every test. - SQLite Optimization: Unsupported MySQL features (like
fullTextindices) are automatically bypassed during test runs to ensure perfect driver compatibility.
This project is licensed under the Apache 2.0 License.