mirror of
https://github.com/jkaninda/laravel-php-fpm.git
synced 2025-12-06 17:09:39 +01:00
Update README
This commit is contained in:
22
README.md
22
README.md
@@ -187,7 +187,7 @@ volumes:
|
|||||||
## Build from base
|
## Build from base
|
||||||
Dockerfile
|
Dockerfile
|
||||||
```Dockerfile
|
```Dockerfile
|
||||||
FROM jkaninda/laravel-php-fpm:8.2
|
FROM jkaninda/laravel-php-fpm:8.3
|
||||||
# Copy laravel project files
|
# Copy laravel project files
|
||||||
COPY . /var/www/html
|
COPY . /var/www/html
|
||||||
# Storage Volume
|
# Storage Volume
|
||||||
@@ -195,12 +195,12 @@ VOLUME /var/www/html/storage
|
|||||||
|
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
|
|
||||||
# Custom cache invalidation
|
# Custom cache invalidation / optional
|
||||||
ARG CACHEBUST=1
|
#ARG CACHEBUST=1
|
||||||
RUN composer install
|
# Run composer install / Optional
|
||||||
|
#RUN composer install
|
||||||
RUN chown -R www-data:www-data /var/www/html/storage
|
# Fix permissions
|
||||||
RUN chown -R www-data:www-data /var/www/html/bootstrap/cache
|
RUN chown -R www-data:www-data /var/www/html
|
||||||
|
|
||||||
```
|
```
|
||||||
## Supervisord
|
## Supervisord
|
||||||
@@ -227,9 +227,13 @@ stdout_logfile=/var/www/html/storage/logs/kafka.log
|
|||||||
> /var/www/html/conf/php/php.ini
|
> /var/www/html/conf/php/php.ini
|
||||||
|
|
||||||
### Storage permision issue
|
### Storage permision issue
|
||||||
> docker-compose exec php-fpm /bin/bash
|
```sh
|
||||||
|
docker-compose exec php-fpm /bin/bash
|
||||||
|
```
|
||||||
|
|
||||||
> chown -R www-data:www-data /var/www/html/storage
|
```sh
|
||||||
|
chown -R www-data:www-data /var/www/html
|
||||||
|
```
|
||||||
|
|
||||||
> chmod -R 775 /var/www/html/storage
|
> chmod -R 775 /var/www/html/storage
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,6 @@ else
|
|||||||
echo "Custom php.ini file not found"
|
echo "Custom php.ini file not found"
|
||||||
echo "If you want to add a custom php.ini file, you add it in /var/www/html/conf/php/php.ini"
|
echo "If you want to add a custom php.ini file, you add it in /var/www/html/conf/php/php.ini"
|
||||||
fi
|
fi
|
||||||
chown -R www-data:www-data /var/www/html
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "**********************************"
|
echo "**********************************"
|
||||||
|
|||||||
Reference in New Issue
Block a user