Skip to main content

Quick Start

The simplest way to get started with Borg UI is using Docker. This method is ideal for testing or simple deployments.
Access the web interface at http://localhost:8081Default credentials: admin / admin123

Port Configuration

By default, Borg UI runs on port 8081. You can change this using the PORT environment variable:

Volume Mounts Explained

Application Data

Stores all persistent application data:
  • SQLite database (borg.db)
  • SSH keys
  • Borg encryption keys
  • Application logs
  • Configuration files
  • Auto-generated SECRET_KEY

Borg Cache

Improves backup performance by caching repository metadata. This significantly speeds up backup operations on subsequent runs.

Host Filesystem Access

Replace /home/yourusername with the actual directory you want to backup on your host system.
This mount gives Borg UI access to files on your host machine. The host directory is mounted at /local inside the container. Production examples:
When using custom mount paths (not /local), set the LOCAL_MOUNT_POINTS environment variable to help the UI detect available directories:

Timezone Synchronization

Syncs the container timezone with your host system. This ensures correct timestamps in backup archives and logs. Alternatively, set the timezone via environment variable:

Docker Socket (Optional)

Required only if you want to stop/start Docker containers during backups using pre/post backup scripts.

Environment Variables

Core Settings

User/Group IDs

Set these to match your host user’s UID/GID for proper file permissions. Find yours with:

Timezone

Common timezones:
  • America/New_York
  • America/Chicago
  • America/Los_Angeles
  • Europe/London
  • Europe/Paris
  • Asia/Kolkata
  • Asia/Tokyo

Security

If not set, SECRET_KEY is auto-generated and persisted to /data/.secret_key. For production deployments, it’s recommended to set a custom secret key.

Borg Timeouts

For large repositories with long cache build times:

Disable Authentication

Only use this in secure, private networks. Not recommended for production.

Complete Example

Production deployment with all recommended settings:

Multi-Architecture Support

Borg UI supports the following architectures:
  • amd64 (x86_64)
  • arm64 (aarch64)
  • armv7 (32-bit ARM)
Docker automatically pulls the correct image for your platform.

Updating

To update to the latest version:
1

Pull the latest image

2

Stop and remove the old container

3

Start with the new image

Run your original docker run command again. All data is preserved in the volumes.

Managing the Container

View logs

Follow logs in real-time

Stop the container

Start the container

Restart the container

Access container shell

Troubleshooting

Permission Issues

If you encounter permission errors accessing host files:
  1. Check your PUID/PGID match your host user:
  2. Verify volume mount permissions:
  3. Restart container with correct PUID/PGID:

Port Already in Use

If port 8081 is already in use:
Or change both host and container ports:

Next Steps

Docker Compose

Recommended method for production deployments

Reverse Proxy

Run behind Nginx or Traefik