File tree Expand file tree Collapse file tree 6 files changed +18
-7
lines changed Expand file tree Collapse file tree 6 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,15 @@ COPY database ${MASTER_DIR}/database
40
40
RUN composer install --no-interaction --no-plugins --no-scripts
41
41
42
42
COPY . ${MASTER_DIR}
43
- COPY ./.docker/scripts/queuer.sh /usr/local/bin/laravel-queuer
44
- COPY ./.docker/scripts/scheduler.sh /usr/local/bin/laravel-scheduler
45
-
46
- RUN chmod -R 775 /var/www/html/storage
43
+ COPY ./.docker/php-fpm/init.sh /usr/local/bin/init
44
+ COPY ./.docker/php-fpm/after.sh /usr/local/bin/after
45
+ COPY ./.docker/queuer/init.sh /usr/local/bin/laravel-queuer
46
+ COPY ./.docker/scheduler/init.sh /usr/local/bin/laravel-scheduler
47
+
48
+ RUN chmod -R 775 ${MASTER_DIR}/storage ${MASTER_DIR}/bootstrap/cache
49
+ RUN chmod u+x /usr/local/bin/init
50
+ RUN chmod u+x /usr/local/bin/after
47
51
RUN chmod u+x /usr/local/bin/laravel-queuer
48
52
RUN chmod u+x /usr/local/bin/laravel-scheduler
49
53
50
- EXPOSE 9000
51
- CMD ["php-fpm" ]
54
+ ENTRYPOINT ["init" , "--port" , "9000" ]
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ if [ " $PHP_ENV " != " development" ]; then
4
+ chown -R www-data /var/www/html
5
+ fi
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ exec php-fpm
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ server {
26
26
server {
27
27
listen 80;
28
28
listen [::]:80;
29
- server_name phpmyadmin.laravel-react-admin.test ;
29
+ server_name phpmyadmin.example.com ;
30
30
location / {
31
31
proxy_set_header Host $host;
32
32
proxy_set_header X-Real-IP $remote_addr;
You can’t perform that action at this time.
0 commit comments