mirror of
https://github.com/jkaninda/laravel-php-fpm.git
synced 2025-12-06 00:49:39 +01:00
22
README.md
22
README.md
@@ -1,5 +1,4 @@
|
||||

|
||||

|
||||
[](https://github.com/jkaninda/laravel-php-fpm/actions/workflows/build.yml)
|
||||

|
||||

|
||||
|
||||
@@ -173,6 +172,25 @@ volumes:
|
||||
docker-compose up -d
|
||||
|
||||
```
|
||||
## Build from base
|
||||
Dockerfile
|
||||
```Dockerfile
|
||||
FROM jkaninda/laravel-php-fpm:8.1
|
||||
# Copy laravel project files
|
||||
COPY . /var/www/html
|
||||
# Storage Volume
|
||||
VOLUME /var/www/html/storage
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
# Custom cache invalidation
|
||||
ARG CACHEBUST=1
|
||||
RUN composer install
|
||||
|
||||
RUN chown -R www-data:www-data /var/www/html/storage
|
||||
RUN chown -R www-data:www-data /var/www/html/bootstrap/cache
|
||||
|
||||
```
|
||||
## Supervisord
|
||||
### Add supervisor process file in
|
||||
> /var/www/html/conf/worker/supervisor.conf
|
||||
|
||||
Reference in New Issue
Block a user