Skip to content

Commit

Permalink
Merge pull request #69 from jkaninda/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
jkaninda authored Dec 16, 2023
2 parents 5dea6fe + 5badbd3 commit 673a481
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,20 +187,20 @@ volumes:
## Build from base
Dockerfile
```Dockerfile
FROM jkaninda/laravel-php-fpm:8.2
FROM jkaninda/laravel-php-fpm:8.3
# 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
# Custom cache invalidation / optional
#ARG CACHEBUST=1
# Run composer install / Optional
#RUN composer install
# Fix permissions
RUN chown -R www-data:www-data /var/www/html

```
## Supervisord
Expand All @@ -227,9 +227,13 @@ stdout_logfile=/var/www/html/storage/logs/kafka.log
> /var/www/html/conf/php/php.ini
### 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

Expand Down

0 comments on commit 673a481

Please sign in to comment.