Deployment
Deploy with Docker Compose
Deploy your own Speckle server using Docker Compose
Docker Compose is the recommended deployment method for most users. It provides a simple, reliable way to deploy a Speckle server with minimal configuration and maximum flexibility.
Overview
Docker Compose deployment includes:
- Complete server stack: API, frontend, viewer, and database
- Easy configuration: Single docker-compose.yml file
- Production ready: Includes SSL, monitoring, and backup capabilities
- Scalable: Can be extended for larger deployments
Prerequisites
Before deploying, ensure you have:
- Docker & Docker Compose installed on your server
- Domain name pointing to your server
- SSL certificate (Let’s Encrypt recommended)
- Minimum 4GB RAM and 20GB storage
- Port 80 and 443 available
Quick Start
- Clone the repository:
- Configure environment:
- Start the server:
Your server will be available at https://your-domain.com
Configuration
Environment Variables
Key configuration options in your .env
file:
SSL Certificate Setup
For production deployments, SSL certificates are essential:
- Install Certbot:
- Obtain certificate:
- Update docker-compose.yml to mount certificate paths
Production Deployment
Recommended Production Setup
Monitoring & Logs
Monitor your deployment:
Backup Strategy
Set up automated backups:
Troubleshooting
Common Issues
Server won’t start:
- Check Docker and Docker Compose versions
- Verify all environment variables are set
- Check port availability
SSL certificate issues:
- Ensure domain points to your server
- Verify certificate paths in docker-compose.yml
- Check certificate expiration
Database connection errors:
- Verify PostgreSQL credentials
- Check database container status
- Ensure proper volume mounting
Getting Help
- Community Forum: speckle.community
- GitHub Issues: speckle-server issues
- Documentation: Check other deployment guides
Next Steps
After successful deployment:
- Configure connectors to use your server
- Set up monitoring and alerting
- Create backup schedules
- Configure user management
- Test all functionality
Development vs Production: This guide focuses on production deployment. For development and testing, see the Local Development guide.