🐳 Docker image for a PHP-APACHE container created to run Laravel or any php based applications.
- PHP 8.1 / 8.0 / 7.4 / 7.2
- Composer
- OpenSSL PHP Extension
- XML PHP Extension
- PDO PHP Extension(pdo_mysql,pdo_pgsql)
- Redis PHP Extension
- Mbstring PHP Extension
- PCNTL PHP Extension
- ZIP PHP Extension
- GD PHP Extension
- BCMath PHP Extension
- Memcached
- Laravel Cron Job
- Laravel Schedule
- Laravel Envoy
- Supervisord
version: '3'
services:
app:
image: jkaninda/laravel-php-apache:latest
container_name: app
restart: unless-stopped
ports:
- "80:80"
volumes:
#Project root
- ./:/var/www/html
#- ~/.ssh:/root/.ssh # If you use private CVS
environment:
- APP_ENV=development # Optional, or production
#- LARAVEL_PROCS_NUMBER=1 # Optional, Laravel queue:work process number
networks:
- default #if you're using networks between containers
docker-compose exec app /bin/bash
php atisan migrate
docker-compose up -d
/var/www/html/conf/worker/supervisor.conf
/var/www/html/conf/php/php.ini
docker-compose exec app /bin/bash
chown -R www-data:www-data /var/www/html/storage
chmod -R 775 /var/www/html/storage
P.S. please give a star if you like it 😉