File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -74,14 +74,13 @@ WORKDIR /var/www/html/
74
74
COPY . /var/www/html
75
75
76
76
# Set ownership and permissions for the storage directory
77
+ USER root
77
78
RUN chown -R www-data:www-data /var/www/html/storage
78
79
RUN chmod -R 775 /var/www/html/storage
80
+ USER www-data
79
81
80
82
# Set ownership and permissions for the laravel.log file
81
83
RUN chown www-data:www-data /var/www/html/storage/logs/laravel.log
82
84
RUN chmod 664 /var/www/html/storage/logs/laravel.log
83
85
84
- Refferecn
85
- https://github.com/nimatrazmjo/laravel-vuejs-docker/blob/main/Dockerfile.prod
86
-
87
86
Original file line number Diff line number Diff line change @@ -33,4 +33,7 @@ Docker development implementation for Laravel 8.\* with:
33
33
34
34
## Contributing
35
35
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
Original file line number Diff line number Diff line change @@ -53,8 +53,9 @@ services:
53
53
MYSQL_PASSWORD : laravel
54
54
MYSQL_ROOT_PASSWORD : secret
55
55
MYSQL_DATABASE : laravel
56
+ command : --default-authentication-plugin=mysql_native_password
56
57
volumes :
57
- - .. /mysql:/mysql
58
+ - ./mysql:/var/lib /mysql
58
59
networks :
59
60
- webapp
60
61
You can’t perform that action at this time.
0 commit comments