Docker Installation
BugPin is a self-hosted visual bug reporting tool that can be installed with Docker in under 2 minutes. This guide covers Docker Compose setup, file permissions, and bind mounts and named volumes. Going live behind HTTPS, backups, and upgrades have their own pages, linked at the end.
Prerequisites
- Docker Engine 20.10+ and Docker Compose v2+ installed
- A Linux, macOS, or Windows host with an x86-64 (amd64) CPU. The image is published for
linux/amd64only, so ARM hosts such as Apple Silicon Macs or a Raspberry Pi need emulation. On ARM servers, use the Bun installation instead. - CPU: 1 core minimum (2 cores recommended for production)
- RAM: 512MB minimum, 1GB recommended for production and when screen recording is enabled
- Disk: 1GB minimum for the application; additional space depends on screenshot and attachment volume (plan for 10–50MB per 1,000 reports). Screen recording, if you enable it, needs far more: by default a video can be up to 50 MB and each project can receive up to 2 GB of video per day. See Screen Recording.
- For production: a domain name and a reverse proxy that terminates HTTPS. Websites served over HTTPS can only load the widget from an HTTPS BugPin server. See Reverse Proxy Setup.
Quick Start
Docker (Recommended)
mkdir bugpin && cd bugpin
curl -O https://raw.githubusercontent.com/aranticlabs/bugpin/main/docker-compose.yml
docker compose up -d
BugPin is now running at http://localhost:7300
Docker Command
docker run -d --restart=always -p 7300:7300 -v bugpin-data:/data --name bugpin registry.arantic.cloud/bugpin/bugpin:latest
Prefer to run BugPin without Docker? See the Bun installation.
File Permissions for Bind Mounts
If you're using a bind mount (./data:/data), you need to set proper permissions for the data directory:
sudo chown -R 1000:1000 ./data
If you don't know the UID (usually 1000 for bun user), check the exact UID first:
docker run --rm registry.arantic.cloud/bugpin/bugpin:main id bun
This will show uid=1000(bun) gid=1000(bun) groups=1000(bun)
If you don't want to manage permissions, use a named volume instead of a bind mount in your docker-compose.yml:
volumes:
- bugpin-data:/data
volumes:
bugpin-data:
driver: local
Named volumes are managed by Docker and don't require manual permission setup.
Manual Docker Compose Setup
1. Create the Docker Compose file
Create a file named docker-compose.yml:
services:
bugpin:
image: registry.arantic.cloud/bugpin/bugpin:latest
container_name: bugpin
restart: unless-stopped
ports:
- "7300:7300"
volumes:
- ./data:/data
environment:
- LOG_LEVEL=info
# Initial admin account, used only when no users exist yet
# - ADMIN_PASSWORD=choose-a-strong-initial-password
# Which proxies may set X-Forwarded-For: auto (default when unset), true or false.
# false: port 7300 is published directly, without a reverse proxy.
# Behind a reverse proxy, use auto (private-network proxies) or true (any proxy).
- TRUST_PROXY=false
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://localhost:7300/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s
2. Start BugPin
docker compose up -d
3. Login and choose a new password
Open http://localhost:7300 and log in with:
- Email:
[email protected] - Password:
changeme123
The initial password works only once. BugPin asks you to choose a new password right after the first login. To use other initial credentials, set ADMIN_EMAIL and ADMIN_PASSWORD in docker-compose.yml before the first start.
That's it! BugPin is now running.
What's Configured Automatically
- Session key: Generated automatically and stored in the data volume
- Database: SQLite, stored in the data volume
- Admin account: Created on first run from
ADMIN_EMAILandADMIN_PASSWORD(defaults:[email protected]/changeme123), with a password change required at first login
Data Persistence
BugPin uses Docker volumes to persist data. Understanding how volumes work is important for backups, migrations, and troubleshooting.
Volume Configuration
The default configuration uses a bind mount:
volumes:
- ./data:/data
What this means:
./data- Directory on your host machine (same location as docker-compose.yml)/data- Directory inside the container where BugPin stores data
Example:
If you place docker-compose.yml in /home/user/bugpin/, Docker will create /home/user/bugpin/data/ and mount it to /data inside the container.
What Gets Stored
Inside the ./data directory, you'll find:
./data/
├── bugpin.db # SQLite database (all reports, users, settings)
├── .secret # Auto-generated key that encrypts authenticator app secrets
└── uploads/ # User-uploaded files
├── screenshots/ # Bug report screenshots
├── attachments/ # File attachments
└── branding/ # Custom logo and branding assets
Bind Mount vs Named Volume
Option 1: Bind Mount (Default, Recommended)
volumes:
- ./data:/data
Advantages:
- Easy to find and access (right next to docker-compose.yml)
- Simple to backup (just copy the folder)
- Easy to inspect files directly
- Simple to migrate (move the entire directory)
Disadvantages:
- Can be accidentally deleted
- Permissions can be tricky on some systems
Option 2: Named Volume
volumes:
- bugpin-data:/data
volumes:
bugpin-data:
driver: local
Advantages:
- Managed by Docker (stored in
/var/lib/docker/volumes/) - Better isolation and permissions
- Less likely to be accidentally deleted
Disadvantages:
- Harder to find and access directly
- More complex backup process
- Need to use
docker volumecommands
Backup
Back up the complete /data mount with BugPin stopped, including .secret. See Backup and Restore for the commands for bind mounts and named volumes, restoring, and moving BugPin to another server.
Custom Data Location
To store data in a different location:
volumes:
- /path/to/your/data:/data
For example, to use a dedicated data partition:
volumes:
- /mnt/data/bugpin:/data
Troubleshooting Volumes
Check what's stored in the volume:
# For bind mount
ls -lah ./data
# For named volume
docker run --rm -v bugpin-data:/data alpine ls -lah /data
Check disk usage:
# For bind mount
du -sh ./data
# For named volume
docker system df -v | grep bugpin
Fix permissions (if container can't write to bind mount):
sudo chown -R 1000:1000 ./data
Update
Updating, image tags, verifying an update, and rolling back are covered in Upgrading BugPin. The short version, after a backup:
docker compose pull bugpin
docker compose up -d bugpin
The latest image follows new stable releases, including major versions. To stay on one release line, use a major or minor image tag.
Rolling Back
Restore the previous image and its matching full data backup together. See Rolling Back.
Custom Port
To use a different port, edit the ports section:
ports:
- "8080:7300" # Access on port 8080
Reverse Proxy
For production deployments, place BugPin behind a reverse proxy with SSL. See Reverse Proxy Setup for Nginx, Traefik, Caddy, and Apache configurations.
The quick-start docker-compose.yml sets TRUST_PROXY=false, because without a reverse proxy BugPin receives connections directly. Behind a reverse proxy, set TRUST_PROXY=auto when the proxy runs on the same host or Docker network, or TRUST_PROXY=true when it connects from a public address, and make sure the proxy sets or appends X-Forwarded-For. See Client IP Addresses and TRUST_PROXY.
Health Check
BugPin includes automatic health monitoring:
docker inspect --format='{{.State.Health.Status}}' bugpin
See Health Checks for the health endpoint and uptime monitoring.