Configuration
Environment variables for configuring your Docka instance.
Required Variables
| Variable | Description |
DATABASE_URL | PostgreSQL connection string |
JWT_SECRET | Secret for JWT tokens (min 32 chars) |
ENCRYPTION_KEY | 32-byte key for encrypting credentials |
Optional Variables
| Variable | Default | Description |
PORT | 8080 | Server port |
REDIS_URL | - | Redis connection (for caching) |
BASE_URL | - | Public URL (e.g., https://docka.example.com) |
Example Configuration
# /etc/docka/env
DATABASE_URL=postgres://docka:password@localhost:5432/docka?sslmode=disable
JWT_SECRET=your-secure-256-bit-secret-key-here
ENCRYPTION_KEY=32-byte-encryption-key-here-now
REDIS_URL=redis://localhost:6379/0
PORT=8080
ENVIRONMENT=production
BASE_URL=https://docka.example.com
OAuth Providers (Optional)
# GitHub OAuth
GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-secret
# Google OAuth
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-secret