Quick Start
Get Drivebase running in minutes
This guide will help you get a basic instance of Drivebase up and running as quickly as possible using Docker.
Prerequisites
Before you begin, ensure you have the following installed on your system:
Fast Docker Run
The fastest way to get started is with our automated installer:
wget -qO- https://drivebase.one/install | bashThis will create a drivebase folder, set up your configuration, and generate secure keys automatically.
Alternatively, you can follow the manual steps below:
-
Download the Production Compose file:
wget -O compose.yaml https://drivebase.one/compose # OR: curl -o compose.yaml https://drivebase.one/compose -
Create an environment file:
touch .env.local -
Add basic configuration: Open
.env.localand add the following (replace with your own secrets):DATABASE_URL=postgres://postgres:postgres@db:5432/drivebase REDIS_URL=redis://redis:6379 JWT_SECRET=super-secret-jwt-key ENCRYPTION_KEY=32-character-long-encryption-key-!! CORS_ORIGIN=http://localhost:3000 API_BASE_URL=http://localhost:3000Note: For production, use
openssl rand -base64 32to generate secure keys. -
Start the services: Run the following command to start Drivebase and its dependencies:
docker compose --env-file .env.local up -d -
Access the application:
- Web App: http://localhost:3000
- GraphQL Playground: http://localhost:3000/graphql
First Login
When you first access Drivebase, you will need to create an owner account.
- Navigate to
http://localhost:3000/register. - Enter your email and a strong password.
- Once registered, you will be logged in as the system owner.
Connect Your First Provider
To start managing files, you need to connect a storage provider.
- Go to the Providers section in the sidebar.
- Click Connect Provider.
- Choose Local Storage for a quick test.
- Give it a name (e.g., "My Local Disk") and specify a path inside the container (e.g.,
/data/storage). - Click Connect.
Now you can go to the Files section and start uploading!