Download the PHP package inisiatif/docker-tools without Composer
On this page you can find all versions of the php package inisiatif/docker-tools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package docker-tools
Docker Tools
A comprehensive Docker toolkit for building and deploying Laravel applications with support for multiple PHP versions and deployment environments.
Features
- Multi-stage Docker builds with HTTP and Artisan stages
- PHP versions support: 8.1, 8.2, 8.3, 8.4
- Simple CMD override pattern for maximum flexibility
- Environment compatibility: VM environments (EC2, Droplets) and cluster environments (K8s, Nomad)
- Semantic versioning with automated build and push
- Zero-complexity deployment with no environment variables required
Quick Start
1. Install the Package
2. Publish Docker Files
This creates:
docker/directory with Dockerfile and configurationsdocker-compose.ymlfor developmentdocker-compose.prod.ymlfor production
3. Build Images
Usage Examples
Quick Start
📋 For complete deployment examples see: examples/
- Docker Run Commands - Single server deployment
- Docker Compose - VM environments (EC2, Droplets)
- Kubernetes - Cloud-native deployments
- Nomad - HashiCorp stack deployments
Docker Images
The toolkit builds two types of images:
HTTP Image (myapp:http-php8.3)
- Purpose: Web server with PHP-FPM + Caddy
- Entrypoint: Automatically starts HTTP services
- Use cases: Web requests, API endpoints
- Port: 8080
Artisan Image (myapp:artisan-php8.3)
- Purpose: CLI operations and background tasks
- Entrypoint: Pure command execution via CMD override
- Use cases: Queue workers, schedulers, migrations, custom commands
- Port: None (CLI only)
Build Tool (bin/doctool)
The build script provides semantic versioning and registry management:
bash
Build images first
./bin/doctool
Run compatibility tests
./test-compatibility.sh
project/
├── docker/
│ ├── Dockerfile # Multi-stage build definition
│ ├── entrypoint.sh # Simple service detection
│ ├── caddy/
│ │ └── 8.x/
│ │ └── Caddyfile # Web server configuration
│ └── php/
│ ├── opcache.ini # PHP optimization
│ ├── php.ini # PHP configuration
│ └── 8.x/
│ └── php-fpm.conf # PHP-FPM pool configuration
├── docker-compose.yml # Development composition
├── docker-compose.prod.yml # Production composition
├── bin/
│ └── doctool # Build and deployment script
└── examples/
├── README.md # Deployment examples index
├── docker-run.md # Direct Docker run commands
├── docker-compose.md # Docker Compose for VMs
├── kubernetes.md # Kubernetes manifests
└── nomad.md # Nomad job specifications
bash
Essential Laravel settings
APP_ENV=production APP_KEY=base64:your-key-here DB_HOST=database DB_DATABASE=laravel QUEUE_CONNECTION=redis REDIS_HOST=redis
PHP optimizations
PHP_MEMORY_LIMIT=512M PHP_OPCACHE_ENABLE=1 bash
Check logs
docker logs
Interactive debugging
docker run -it myapp:artisan-php8.3 bash
Test health endpoint
📋 **For detailed troubleshooting see**: [examples/](examples/)
### Getting Help
1. Check the [deployment examples](examples/) for your target platform
2. Run the compatibility test script: `./test-compatibility.sh`
3. Review Docker logs for error messages
4. Verify environment variables are set correctly
## Contributing
1. Fork the repository
2. Create a feature branch
3. Add tests for new functionality
4. Ensure all tests pass
5. Submit a pull request
## License
This package is open-sourced software licensed under the [MIT license](LICENSE).All versions of docker-tools with dependencies
illuminate/console Version ^9.52.16|^10.0|^11.0|^12.0
illuminate/contracts Version ^9.52.16|^10.0|^11.0|^12.0
illuminate/support Version ^9.52.16|^10.0|^11.0|^12.0