Skip to content

Commit

Permalink
Merge pull request #60 from jkaninda/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
jkaninda committed Nov 13, 2023
2 parents d1b60c0 + dbd481f commit 1045c2e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ services:
php-fpm:
image: jkaninda/laravel-php-fpm
container_name: php-fpm
working_dir: /var/www/html #Optional, If you want to use a custom directory
restart: unless-stopped
volumes:
#Project root
Expand Down Expand Up @@ -187,7 +186,7 @@ volumes:
## Build from base
Dockerfile
```Dockerfile
FROM jkaninda/laravel-php-fpm:8.1
FROM jkaninda/laravel-php-fpm:8.2
# Copy laravel project files
COPY . /var/www/html
# Storage Volume
Expand All @@ -204,9 +203,23 @@ RUN chown -R www-data:www-data /var/www/html/bootstrap/cache

```
## Supervisord
### Add supervisor process file in
### Add supervisor process in
> /var/www/html/conf/worker/supervisor.conf
In case you want to execute and maintain a task or process with supervisor
### 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
```

### Custom php.ini
> /var/www/html/conf/php/php.ini
Expand Down
2 changes: 1 addition & 1 deletion src/docker/8.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.2.11-fpm
FROM php:8.2.12-fpm
ARG WORKDIR=/var/www/html
ENV DOCUMENT_ROOT=${WORKDIR}
ENV LARAVEL_PROCS_NUMBER=1
Expand Down

0 comments on commit 1045c2e

Please sign in to comment.