# Deploy MyDrive with Easypanel

URL: /templates/mydrive

MyDrive is a self-hosted, open source cloud file storage server similar to Google Drive. Upload, organize, and browse files and folders from the browser, preview images and videos inline, and share files or folders with others through generated links. Files can optionally be encrypted at rest with a key only you hold. This template stores uploaded files on a persistent volume and uses MongoDB for metadata, matching the official Docker Compose setup.

## Installation notes

Open the app URL and register the first account. Files are encrypted with the randomly generated KEY set on the app service — back up this value from the service's environment variables, since losing it makes all stored files permanently unrecoverable.

## Benefits

### Encrypted File Storage

Files can be encrypted at rest with a private key that only you hold, so stored data isn't readable without it.

### Google Drive-Like Interface

A familiar browser UI for uploading, organizing into folders, and previewing files, with no learning curve.

### Self-Hosted Sharing

Generate share links for files and folders without relying on a third-party cloud storage provider.

## Features

### Media Previews

Preview images and videos directly in the browser, with optional thumbnail generation for quick browsing.

### Drag-and-Drop Upload

Upload files and entire nested folder structures by dragging them straight into the browser.

### File and Folder Sharing

Share individual files or whole folders with others via a generated link, without giving them account access.

### Search

Quickly locate files and folders across your storage with built-in search.

## Configuration

- `appServiceName` (App Service Name, required): mydrive

- `appServiceImage` (App Service Image, required): kylehoell/mydrive:sha-bae5dbb

## Services

- mydrive: app (kylehoell/mydrive:sha-bae5dbb)

- mydrive-mongo: mongo

## Resources

- [Website](https://mydrive-storage.com)

- [GitHub](https://github.com/subnub/myDrive)

- [Docker Hub](https://hub.docker.com/r/kylehoell/mydrive)

- [Template source](https://github.com/easypanel-io/templates/tree/main/templates/mydrive)