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
4040RUN composer install --no-interaction --no-plugins --no-scripts
4141
4242COPY . ${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
4751RUN chmod u+x /usr/local/bin/laravel-queuer
4852RUN chmod u+x /usr/local/bin/laravel-scheduler
4953
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 {
2626server {
2727 listen 80;
2828 listen [::]:80;
29- server_name phpmyadmin.laravel-react-admin.test ;
29+ server_name phpmyadmin.example.com ;
3030 location / {
3131 proxy_set_header Host $host;
3232 proxy_set_header X-Real-IP $remote_addr;
You can’t perform that action at this time.
0 commit comments