File tree 3 files changed +10
-5
lines changed 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -63,8 +63,6 @@ COPY --from=vuejs /app/public/js/ /var/www/html/public/js/
63
63
COPY --from=vuejs /app/public/css/ /var/www/html/public/css/
64
64
COPY --from=vuejs /app/mix-manifest.json /var/www/html/mix-manifest.json
65
65
66
- RUN pwd && ls -la
67
-
68
66
RUN php artisan key:generate --ansi && php artisan storage:link && php artisan config:cache && php artisan route:cache
69
67
70
68
@@ -79,6 +77,13 @@ RUN chown -R www-data:www-data /var/www/html/storage \
79
77
RUN mkdir -p storage/app \
80
78
&& touch storage/app/db.sqlite
81
79
80
+ RUN chown -R www-data:www-data \
81
+ /var/www/html \
82
+ /var/www/html/storage \
83
+ /var/www/html/bootstrap/cache
84
+
85
+ RUN chmod -R 775 /var/www/html/storage
86
+
82
87
VOLUME ["/var/www/html/storage", "/var/www/html/bootstrap/cache"]
83
88
84
89
EXPOSE 80
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ services:
17
17
networks :
18
18
- back-tier
19
19
mysql :
20
- image : mysql
20
+ image : mysql:8.0
21
21
container_name : mysql
22
22
command : --default-authentication-plugin=mysql_native_password
23
23
restart : always
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ services:
26
26
- ${MYSQL_PORT}:3306
27
27
volumes :
28
28
- ./mysql/init.sql:/data/application/init.sql
29
- - mysql_data5 :/var/lib/mysql
29
+ - mysql_data :/var/lib/mysql
30
30
client :
31
31
build :
32
32
context : .
@@ -38,4 +38,4 @@ services:
38
38
depends_on :
39
39
- " server"
40
40
volumes :
41
- mysql_data5 :
41
+ mysql_data :
You can’t perform that action at this time.
0 commit comments