a06ddf0435
Build and Push Docker Image / build (push) Successful in 16s
- README: v0.8.1 highlights, Node 18+ requirement + client install step for manual dev setup, health/genetics features listed, release summary updated - API.md: paginated response shapes for dogs/litters, validation + status-code behavior (400/404), full breeding heat-cycle CRUD, genetics PUT/DELETE, pedigree COI/relations/cancer-lineage endpoints, corrected Litter object - DEVELOPMENT.md: two-layer migration approach documented with schema-drift warning, heat_cycles/cancer_history tables, Toast/ConfirmDialog UI patterns (no alert/window.confirm), full env-var table, auth-deferred decision noted - INSTALL.md: fixed API smoke-test (old /api/health root path doesn't exist), master -> main - ROADMAP: v0.8.1 entry; Phase 4b checkboxes reconciled with what's actually built; Phase 6 progress; pre-deploy prod-DB check added to QA list Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
4.0 KiB
4.0 KiB
BREEDR Installation Guide
Quick Start - Unraid Deployment
Step 1: Clone the Repository
SSH into your Unraid server and run:
cd /tmp
git clone https://git.alwisp.com/jason/breedr.git
cd breedr
Step 2: Build the Docker Image
docker build -t breedr:latest .
This will:
- Install all Node.js dependencies automatically
- Build the React frontend
- Set up the SQLite database
- Create a production-ready container
Build time: Approximately 3-5 minutes depending on your server.
Step 3: Deploy via Unraid UI
- Open Unraid web interface
- Navigate to the Docker tab
- Click Add Container
- Configure the following:
Basic Settings
- Name:
Breedr - Repository:
breedr:latest - Network Type:
Bridge
Port Mappings
- Container Port:
3000 - Host Port:
3000(or your preferred port) - Connection Type:
TCP
Volume Mappings
Path 1 - Database Storage:
- Container Path:
/app/data - Host Path:
/mnt/user/appdata/breedr - Access Mode:
Read/Write
Path 2 - Photo Uploads:
- Container Path:
/app/uploads - Host Path:
/mnt/user/appdata/breedr/uploads - Access Mode:
Read/Write
Extra Parameters (Optional)
--restart=unless-stopped
- Click Apply
Step 4: Access BREEDR
Open your browser and navigate to:
http://[YOUR-UNRAID-IP]:3000
For example: http://192.168.1.100:3000
Alternative: Command Line Deployment
If you prefer command line deployment:
docker run -d \
--name=breedr \
-p 3000:3000 \
-v /mnt/user/appdata/breedr:/app/data \
-v /mnt/user/appdata/breedr/uploads:/app/uploads \
--restart unless-stopped \
breedr:latest
Verifying Installation
Check Container Status
docker ps | grep breedr
View Container Logs
docker logs breedr
You should see:
🐕 BREEDR Server Running
================================
Environment: production
Port: 3000
Database: /app/data/breedr.db
Uploads: /app/uploads
Access: http://localhost:3000
================================
Test the API
curl http://localhost:3000/api/settings
Should return the kennel settings JSON, e.g.:
{"id":1,"kennel_name":"BREEDR", ...}
Updating BREEDR
To update to the latest version:
# Stop and remove old container
docker stop breedr
docker rm breedr
# Pull latest code
cd /tmp/breedr
git pull origin main
# Rebuild image
docker build -t breedr:latest .
# Redeploy (data persists in volumes)
docker run -d \
--name=breedr \
-p 3000:3000 \
-v /mnt/user/appdata/breedr:/app/data \
-v /mnt/user/appdata/breedr/uploads:/app/uploads \
--restart unless-stopped \
breedr:latest
Backup & Restore
Backup
Your data is stored in two locations:
- Database:
/mnt/user/appdata/breedr/breedr.db - Photos:
/mnt/user/appdata/breedr/uploads/
To backup:
tar -czf breedr-backup-$(date +%Y%m%d).tar.gz /mnt/user/appdata/breedr/
Restore
tar -xzf breedr-backup-YYYYMMDD.tar.gz -C /
Troubleshooting
Container won't start
# Check logs for errors
docker logs breedr
# Ensure ports aren't in use
netstat -tulpn | grep 3000
Database errors
# Reinitialize database
docker exec -it breedr node server/db/init.js
Permission issues
# Fix permissions
chown -R nobody:users /mnt/user/appdata/breedr
chmod -R 755 /mnt/user/appdata/breedr
Can't access web interface
- Verify container is running:
docker ps - Check firewall settings
- Verify port mapping:
docker port breedr - Check Unraid network settings
Uninstalling
# Stop and remove container
docker stop breedr
docker rm breedr
# Remove image
docker rmi breedr:latest
# Remove data (WARNING: This deletes all your data!)
rm -rf /mnt/user/appdata/breedr
Support
For issues or questions:
- Check the logs:
docker logs breedr - Review the README.md
- Contact your system administrator