Docker Deployment β
Ridyβs containerized architecture allows for fast and consistent deployment using Docker and Docker Compose. This is the preferred method for production, staging, and most development environments.
β Why Choose Docker Deployment? β
- Fast setup with a one-line script
- Environment consistency across machines and teams
- Zero manual dependency management
- Ready for scaling in cloud environments
- Database persistence with Docker volumes
π¦ Whatβs Included in the Docker Stack? β
The included docker-compose.yml file provisions:
| Service | Purpose |
|---|---|
rider-api | Customer ride operations |
driver-api | Driver-related logic |
admin-api | Backend for the Admin Panel |
payment-gateways | Processor for 22+ integrated gateways |
mysql | Relational database (Docker volume-persisted) |
redis | Caching and job queues |
nginx | Serves frontend & API routing |
π‘οΈ Licensing Requirements β
- Each license is tied to one public IP.
- Changing IPs frequently or deploying to multiple machines will result in license conflicts or temporary lockouts.
- A static IP VPS is required for Docker deployment.
- Running locally (on laptops or desktops) may consume your license unintentionally.
π‘ Tip: Contact support if you need a dev license slot for local experimentation.
βοΈ Installation Steps β
Download & Run the installation script:
curl -sSL https://uploads.ridy.io/install.sh | sh- Installs Docker and Docker Compose if missing
- Applies default
.envvalues from the included.env.example - Builds and launches all containers
Advanced users can edit
.envanddocker-compose.ymlbefore or after setup to customize ports, resource limits, or volumes.
π Accessing the Admin Panel β
Once setup completes, visit:
http://yourdomain.com/admin/You will be guided through the Admin Installation Wizard, which includes:
- License key verification
- Initial database setup
- Admin user creation
- Branding and system name input
- Firebase & map key configuration
πΎ Data Persistence β
- MySQL data is stored in Docker volumes and remains safe across container restarts or rebuilds.
- Logs and cache are not wiped unless volumes are explicitly deleted.
π§ Resource Requirements β
- The full stack uses approximately 2 GB RAM on idle
- Ensure your VPS has at least:
- 2 GB RAM
- 2-core CPU
- 10 GB disk space
- Static IP address
π Post-Install Configuration Tasks β
After installation:
- Log in to the Admin Panel
- Go to:
- Settings β SMS Providers: Choose and configure one of 8 available
- Settings β Payment Gateways: Select and set up from 22 integrated gateways
- Regions & Pricing: Define your operational areas and fare structures
- (Optional) Upload your brand logo and set system-wide colors
π§ Managing Your Deployment β
Once installed, you can manage your services using Docker commands:
docker-compose ps # View running containers
docker-compose logs -f # Stream live logs
docker-compose restart # Restart all services
docker-compose down # Stop and remove containers (volumes are safe)For advanced scaling or separation (e.g., moving MySQL or Redis to dedicated servers), edit the
docker-compose.ymland.envaccordingly.
