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

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

|
|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
@@ -172,6 +171,25 @@ volumes:
|
|||||||
```sh
|
```sh
|
||||||
docker-compose up -d
|
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
|
## Supervisord
|
||||||
### Add supervisor process file in
|
### Add supervisor process file in
|
||||||
|
|||||||
Reference in New Issue
Block a user