laraship
Version:
Set sail with Laravel - Docker environment generator for Laravel projects
167 lines (125 loc) โข 2.98 kB
Markdown
# LaraShip ๐ข
Set sail with Laravel! LaraShip is the ultimate Docker environment generator for Laravel projects. It helps you quickly set up a **production-ready Docker environment** with zero configuration.



## โจ Features
### ๐ณ One-Command Setup
With a single command, youโre ready to sail:
```bash
npx laraship
```
LaraShip will automatically:
- Detect your PHP version and extensions
- Configure your database
- Set up Redis (if needed)
- Handle SSL certificates
- Configure backups
- Set up GitHub Actions
### ๐น Zero Configuration Needed
- Auto-detects project requirements
- Applies sensible production defaults
- Allows customization when needed
### ๐ Production-Ready
- Optimized `Dockerfile`
- Secure database configuration
- Built-in health checks
- SSL/TLS support
- Backup solutions included
- Monitoring integrations
## ๐ฆ Installation
### Global Installation (Recommended)
```bash
# Install globally
npm install -g laraship
# Use in any Laravel project
cd your-laravel-project
laraship
```
### Using npx (No Installation Required)
```bash
cd your-laravel-project
npx laraship
```
## ๐ Quick Start
1. **Navigate to your Laravel project:**
```bash
cd your-laravel-project
```
2. **Run LaraShip:**
```bash
laraship
```
3. **Answer a few questions:**
- Database preferences
- Redis setup
- Backup configuration
- Deployment options
4. **Start your containers:**
```bash
docker-compose up -d
```
Thatโs it! Your Laravel app is now Dockerized and production-ready.
## ๐ฎ Usage Examples
### Development Setup
```bash
cd my-laravel-app
laraship
# Choose MySQL container
# Skip Redis
# Skip backups
```
### Production Setup
```bash
cd my-laravel-app
laraship
# Enable MySQL
# Enable Redis
# Configure backups
# Set up GitHub Actions
# Enable SSL
```
### Common Commands
```bash
# Start services
docker-compose up -d
# View logs
docker-compose logs -f
# Run migrations
docker-compose exec app php artisan migrate
# Stop services
docker-compose down
```
## ๐ ๏ธ Whatโs Included
### Core Features
- ๐ณ Docker configuration
- ๐ Database setup (MySQL)
- ๐ฆ Redis support
- ๐ Queue workers
- โฐ Task scheduling
- ๐ GitHub Actions integration
- ๐ SSL/TLS support
- ๐ Automated backups
- ๐ Health monitoring
### Additional Services
- PHPMyAdmin
- Mailhog
- Redis Commander
- Backup solutions
- Slack notifications
## ๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
## ๐๏ธ License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## โค๏ธ Support
If you find LaraShip helpful, give it a โญ to show your support!
Made with โค๏ธ by [torgodly](https://github.com/torgodly)