Docker Setup
Using docker compose to setup RefRef
Docker Deployment for RefRef
Docker provides the simplest way to deploy RefRef on your infrastructure. This guide walks you through the process of setting up RefRef using Docker containers.
Prerequisites
Before you begin, ensure you have:
- Docker 20.10+ installed on your host system
- Docker Compose for multi-container deployment
- At least 2GB of RAM and 2 CPU cores available
- Basic understanding of Docker concepts
Quick Start
The fastest way to get RefRef running is using our official Docker images:
Sample Docker Compose Configuration
Create a docker-compose.yml
file with the following content:
Production Considerations
For production deployments, consider these additional steps:
- Use Specific Versions: Pin to specific image versions rather than using
latest
- External Database: Consider using a managed PostgreSQL service for better reliability
- Persistent Storage: Configure proper volume mounts for data persistence
- Networking: Set up proper network isolation
- Monitoring: Add container monitoring with Prometheus/Grafana
- Backups: Implement regular database backups
Upgrading
To upgrade your Docker-based RefRef deployment:
Always back up your data before upgrading.
Troubleshooting Docker Deployments
Common issues with Docker deployments:
- Container fails to start: Check logs with
docker-compose logs refref
- Database connection issues: Verify network connectivity between containers
- Performance problems: Check resource allocation and container limits
For more detailed information on self-hosting RefRef, refer to our main self-hosting documentation.