mirror of
https://github.com/jkaninda/nginx-php-fpm.git
synced 2025-12-06 13:39:42 +01:00
Update PHP Version
This commit is contained in:
17
README.md
17
README.md
@@ -36,7 +36,7 @@
|
||||
version: '3'
|
||||
services:
|
||||
app:
|
||||
image: jkaninda/nginx-php-fpm:latest
|
||||
image: jkaninda/nginx-php-fpm:8.2
|
||||
container_name: my-app
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
@@ -125,6 +125,21 @@ RUN chown -R www-data:www-data /var/www/html/bootstrap/cache
|
||||
### Add more supervisor process in
|
||||
> /var/www/html/conf/worker/supervisor.conf
|
||||
|
||||
In case you want to execute and maintain a task or process with supervisor.
|
||||
Find below an example with Apache Kafka, when you want to maintain a consumer process.
|
||||
### Example:
|
||||
```conf
|
||||
[program:kafkaconsume-worker]
|
||||
process_name=%(program_name)s_%(process_num)02d
|
||||
command=php /var/www/html/artisan kafka:consumer
|
||||
autostart=true
|
||||
autorestart=true
|
||||
numprocs=1
|
||||
user=www-data
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/var/www/html/storage/logs/kafka.log
|
||||
```
|
||||
|
||||
### Storage permision issue
|
||||
> docker-compose exec php-fpm /bin/bash
|
||||
|
||||
|
||||
Reference in New Issue
Block a user