Reading the repo
Opening the box…
Reading the repo
Opening the box…
Assembly instructions
Self Hosted Google drive alternative
Saved setup from 5 h ago
Will it work on macOS?
Heads-upIt also needs 49 settings in .env (5 secret).
The maintainers included setup.sh. Run it from the cloned folder after reading it.
bash setup.sh
Then run bash setup.sh. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
Needs Git: xcode-select --install
git clone https://github.com/gyaaniguy/personal-drive.git cd personal-drive
Node.js LTS (no version pinned), PHP ^8.2
# needs nvm: brew install nvm (or https://github.com/nvm-sh/nvm) nvm install --lts brew install php composer
Fill in secrets: APP_KEY, REDIS_PASSWORD, MAIL_PASSWORD, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
cp .env.example .env
npm ci composer install
php artisan key:generate php artisan migrate
Run each command in its own terminal.
npm run dev php artisan serve
Personal Drive is hosted on Docker Hub. Please read the following carefully, as the below config will need changes for your setup.
Make a new directory, cd into it, then create a new file docker-compose.yml.
mkdir personaldrive ; cd personaldrive ; touch docker-compose.yml
Below is docker-compose.yml. Modify it in the following way:
/absolute/path/to/store/data/on/host - Change to the location where you intend to save your data. Make sure the directory is writable. In my case, I had to give 777 permissions.services:
personal-drive:
image: docker.io/personaldrive/personaldrive
container_name: personal-drive
restart: unless-stopped
ports:
- "127.0.0.1:8080:80"
volumes:
- /absolute/path/to/store/data/on/host:/var/www/html/personal-drive-storage-folder
- personal-drive-data:/var/www/html/personal-drive/database/db
environment:
DISABLE_HTTPS: true
volumes:
personal-drive-data:
Run docker compose up
Open http://localhost:8080
services:
personal-drive:
image: docker.io/personaldrive/personaldrive
container_name: personal-drive
restart: unless-stopped
ports:
- "8080:80"
volumes:
- /absolute/path/to/store/data/on/host:/var/www/html/personal-drive-storage-folder
- personal-drive-data:/var/www/html/personal-drive/database/db
environment:
APP_URL: https://sub.yoursite.com
volumes:
personal-drive-data:
Run docker compose up
Next, we need a web server to point to this container. Config depends on the web server.
sub.yoursite.com {
reverse_proxy localhost:8080
}
The app will also be available on http://localhost:8080
Clone the repo and run the guided setup script.
git clone https://github.com/gyaaniguy/personal-drive.git
cd personal-drive
chmod +x setup.sh
./setup.sh
Ensure PHP and the web server allow large uploads.
It is vital that the storage, bootstrap/cache, and database folders are writable for the web server. The setup script attempts to set these permissions.
No reports for macOS yet.
GitManual AI Agent reads the 5 key files and writes a step-by-step guide for macOS. Once written, it's saved for everyone.