Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/savannabits/dockavel

Compose a Laravel Docker image for Production, with support for php7.4, php8.x and Laravel Octane with both swoole and roadrunner
https://github.com/savannabits/dockavel

dockavel docker docker-compose laravel laravel-docker octane roadrunner savannabits swoole

Last synced: 2 months ago
JSON representation

Compose a Laravel Docker image for Production, with support for php7.4, php8.x and Laravel Octane with both swoole and roadrunner

Awesome Lists containing this project

README

        

# Very short description of the package

[![Latest Version on Packagist](https://img.shields.io/packagist/v/savannabits/dockavel.svg?style=flat-square)](https://packagist.org/packages/savannabits/dockavel)
[![Total Downloads](https://img.shields.io/packagist/dt/savannabits/dockavel.svg?style=flat-square)](https://packagist.org/packages/savannabits/dockavel)
![GitHub Actions](https://github.com/savannabits/dockavel/actions/workflows/main.yml/badge.svg)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

## Installation

You can install the package via composer:

```bash
composer require savannabits/dockavel
```

## Usage
1. Simply Run the `docker:install` command with your `image` name and optionally your bridge `network` name
```shell
# You can run php artisan docker:install --help to see all the options available
php artisan docker:install yourimagename
```
NB: After successfully publishing all the docker config, the command will ask you whether to uninstall itself since its work is done. If you have no further use of it, you can proceed to uninstall it.

2. COPY all the .env variables published in a file named `.env.docker` to your current env file, just below `APP_URL`. Modify the variables as necessary.
3. Done. Now you can run `docker-compose build app` to build your image, then `docker-compose up -d` to run your services.

### Testing

```bash
composer test
```

### Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

## Credits

- [Sam Maosa](https://github.com/savannabits)
- [All Contributors](../../contributors)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

## Laravel Package Boilerplate

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).