Update PHP Version

This commit is contained in:
2023-11-13 15:14:43 +01:00
parent d3b7c843a5
commit 15aac2177d
3 changed files with 18 additions and 3 deletions

View File

@@ -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