Skip to main content

Installation Guide

Borg UI runs as a Docker container with support for multiple architectures (amd64, arm64, armv7). Choose your preferred installation method below.
All installation methods use the same Docker image: ainullcode/borg-ui:latestAvailable on Docker Hub

Prerequisites

  • Docker installed on your system
  • Basic understanding of Docker volumes and networking
  • Access to directories you want to back up

Installation Methods

Docker Compose

Recommended - Easy management and configuration

Docker Run

Quick single-command installation

Portainer

Visual Docker management interface

Unraid

NAS-optimized installation

Docker Compose provides the best experience for managing Borg UI with easy configuration and updates.

Option 1: Basic Setup (No Redis)

Good for occasional use with smaller repositories. Uses in-memory caching.
1

Create docker-compose.yml

Create a new file called docker-compose.yml:
docker-compose.yml
Important replacements:
  • /path/to/your/data → Directory you want to back up (e.g., /home/john)
  • America/Chicago → Your timezone (see list)
  • 1000 → Your user/group ID (find with: id -u && id -g)
2

Start the container

Check the logs:
3

Access the web interface

Open your browser to:
Default credentials:
  • Username: admin
  • Password: admin123
You’ll be prompted to change the password on first login.
Redis provides 600x faster archive browsing for large repositories. Recommended if you browse archives regularly.
1

Create docker-compose.yml with Redis

docker-compose.yml
2

Deploy the stack

Verify both containers are running:

Option 3: External Redis

Use an existing Redis instance on your network or a separate machine.

Docker Run

Quick single-command installation for simple setups.

Basic Installation

Replace /path/to/your/data with the directory you want to back up (e.g., /home/john, /mnt/photos).

With Docker Socket (Optional)

Mount the Docker socket to enable Docker container management in pre/post backup scripts:
See the Backup Scripts Guide for examples of stopping/starting containers during backups.

Portainer

Portainer provides a visual interface for managing Docker containers.
1

Navigate to Stacks

In Portainer, go to:
  • StacksAdd Stack
2

Create the stack

  • Name: borg-ui
  • Build method: Web editor
  • Paste one of the Docker Compose configurations above
3

Customize configuration

Update the following in the compose file:
  • Replace /path/to/your/data with your backup directory
  • Set your timezone in TZ variable
  • Set PUID and PGID to match your user (run id -u && id -g)
4

Deploy the stack

Click Deploy the stack at the bottomMonitor deployment in the logs viewer.
5

Access Borg UI

Navigate to:

Unraid

Unraid users have two installation options: Docker Compose Manager (recommended) or the traditional web UI method.
1

Install Compose Manager plugin

  1. Go to Apps tab
  2. Search for “Compose Manager”
  3. Install the plugin
2

Create a new stack

  1. Navigate to DockerCompose
  2. Click Add New Stack
  3. Name: borg-ui
3

Add the compose configuration

Unraid defaults:
  • PUID=99 and PGID=100 are standard for Unraid
  • /mnt/user provides access to all user shares
  • Appdata is stored in /mnt/user/appdata/borg-ui
4

Deploy the stack

Click Compose Up to start the stackAccess at: http://tower-ip:8081

Option 2: Unraid Web UI (Traditional)

1

Add container

Navigate to Docker tab → Add Container
2

Basic settings

3

Port mappings

4

Volume mappings

5

Environment variables

6

Apply and start

Click Apply to create and start the container
For Redis support with the traditional web UI method, you’ll need to create a separate Redis container and link them via Docker networks.

Advanced Configuration

Mount Multiple Directories

You can mount as many directories as needed:
If you use custom container paths (not /local), set the LOCAL_MOUNT_POINTS environment variable:

Environment Variables

Common environment variables:
See the Environment Variables Guide for a complete list of environment variables and advanced settings.

Privileged Mode (Optional)

Privileged mode is only required for remote-to-remote backups using SSHFS mounting.
Only enable privileged mode if you need SSHFS mounting for backing up remote servers. For local and direct SSH backups, privileged mode is not required.

Timeouts for Large Repositories

For very large repositories, increase operation timeouts:

Post-Installation

1

Access the web interface

Navigate to http://localhost:8081 (or your server’s IP)Default credentials:
  • Username: admin
  • Password: admin123
2

Change default password

You’ll be prompted to change the password on first login for security.
3

Create your first repository

Follow the Quick Start Guide to create your first backup.

Updating Borg UI

Docker Compose

Docker Run

Portainer

  1. Go to Stacks
  2. Select borg-ui
  3. Click Pull and redeploy

Unraid

  1. Go to Docker tab
  2. Find borg-web-ui
  3. Click Update icon
Your data, configurations, and backups are stored in Docker volumes and persist across updates.

Troubleshooting

Check the logs:
Common issues:
  • Port conflict: Change -p 8082:8081 to use different port
  • Volume permissions: Ensure mounted directories exist and are readable
  • Invalid environment variables: Check syntax in compose file
Set correct PUID/PGID:
  1. On your host, run:
  2. Update environment:
  3. Recreate container:
  1. Check container is running:
  2. Check firewall:
  3. Verify port mapping:
  4. Check logs for errors:
  1. Check Redis is running:
  2. Test Redis connection:
    Should return PONG
  3. Verify network connectivity:
  4. Check Redis health:
Set your timezone:
Find your timezone: List of timezonesThen restart:

Uninstalling

Remove container only

Your data and backups remain in Docker volumes.

Remove everything (including backups)

This will delete all data including your backup repositories!

Next Steps

Quick Start

Create your first backup in minutes

Usage Guide

Learn all features and workflows

Configuration

Customize advanced settings

Notifications

Set up backup alerts