Skip to content

Commit 3209743

Browse files
committed
udpate
1 parent d2baa81 commit 3209743

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,13 @@ WORKDIR /var/www/html/
7474
COPY . /var/www/html
7575

7676
# Set ownership and permissions for the storage directory
77+
USER root
7778
RUN chown -R www-data:www-data /var/www/html/storage
7879
RUN chmod -R 775 /var/www/html/storage
80+
USER www-data
7981

8082
# Set ownership and permissions for the laravel.log file
8183
RUN chown www-data:www-data /var/www/html/storage/logs/laravel.log
8284
RUN chmod 664 /var/www/html/storage/logs/laravel.log
8385

84-
Refferecn
85-
https://github.com/nimatrazmjo/laravel-vuejs-docker/blob/main/Dockerfile.prod
86-
8786

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,7 @@ Docker development implementation for Laravel 8.\* with:
3333

3434
## Contributing
3535

36-
You can contribute to this project by following this documentation.
36+
You can contribute to this project by following this documentation.
37+
38+
#Refferecn
39+
- https://github.com/nimatrazmjo/laravel-vuejs-docker/blob/main/Dockerfile.prod

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ services:
5353
MYSQL_PASSWORD: laravel
5454
MYSQL_ROOT_PASSWORD: secret
5555
MYSQL_DATABASE: laravel
56+
command: --default-authentication-plugin=mysql_native_password
5657
volumes:
57-
- ../mysql:/mysql
58+
- ./mysql:/var/lib/mysql
5859
networks:
5960
- webapp
6061

0 commit comments

Comments
 (0)