PHP 7.3
/wwwphp-fpm config:
/php/config:/usr/local/etc:ro/php/socket:/var/run/php/php/supervisord.conf:/etc/supervisord.conf:ro
php:
name: php_project
hostname: php_project
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://nginx/status/fpm"]
image: odavila/php
restart: unless-stopped
volumes:
- ./:/www
- ./php/config:/usr/local/etc:ro
- ./php/socket:/var/run/php
- ./php/supervisord.conf:/etc/supervisord.conf:ro
You can run composer:
docker run --rm -it --user $(id -u ${USER}):$(id -g ${USER}) -v $(pwd):/app composer install
You can run artisan:
docker exec -it php_project php artisan key:generate
docker exec -it php_project php artisan migrate
Supervisor is used to automatically run Laravel queue workers. You can customize the configuration by modifying php/supervisord.conf file.
Content type
Image
Digest
Size
77.1 MB
Last updated
over 6 years ago
docker pull umar1147/php7.3-alpine