Nginx is running on my server (not a docker image) to proxy the subdomain requests to my docker containers. Having an additional nginx container for each image works well as follows: docker-compose.yml site.conf /etc/nginx/sites-available/dev.domain.co.uk But seems wasteful to have an additional instance of nginx for each php site. How can I route the server instance of nginx directly to each
Tag: docker
Nginx on Docker serves only welcome pages
I’m using macOS. I’m working on a Debian image created through Dockerfile. Nginx, php-fpm was installed in Debian image. Then I copied server file to /etc/nginx/sites-available/server and created its …
Docker and Laravel 8 migrate issue
I’ve followed this tutorial docker tutorial and it is an awesome tutorial by the way. Installed an 8 Laravel version and when I tried to run PHP artisan migrate, this problem came out: And I guess this is linked to Laravel 8 when running into a Docker environment. Let’s see the docker-compose.yaml The Dockerfile The docker containers are up and
Docker / Symfony / MongoDB – Cannot install mongodb with PHP 5.6 FPM
I’m not able to install mongodb extension using php:5.6-fpm image. What’s wrong with my Dockerfile configuration ? I have the following error when executing docker-compose build Answer Solution:
Docker with laravel fails because of php extension
Running Laravel on an appache server. Upon building the image with docker-compose up –build with the following Dockerfile FROM php:7.3-apache-stretch RUN apt-get update -y && apt-get install -…
WordPress on Docker behind nginx reverse proxy using SSL
Here is my problem, I need to install a wordpress application on a subdirectory url (“https://test.com/blog/”). Since my whole environment is running on Docker, I decided to do the same with the wordpress app. To start it as simple as possible, I added the wordpress image to my docker-compose.yml, and made a subdomain (“http://blog.test.com” which was not using https) fall
Docker Compose: Set variable in php.ini from Dockerfile
I have a small Docker network based on this package for Docker Compose and Laravel. I’d like to set the upload_max_filesize and post_max_size variables in php.ini to allow for larger file uploads. Is …
I’m encountering issues docker file sharing : setting volumes [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 1 year ago. Improve this question I have problem mounting local directory and get File sharing has been cancelled. Have had checked lots of forums and
dockerfile: `composer install –no-dev installs dev-dependencies, then deletes them straight away after
My docker-compose setup does (I think) some wierd things. I am installing from this composer.json: { “require-dev”: { “phpunit/phpunit”:”~9.0″, “squizlabs/php_codesniffer”: “~3….
Laravel Horizon not executing pending jobs – Kubernetes and Docker environment
We have two different pods in Kubernetes for our Laravel app, one running apache serving on port 80, (CMD /usr/sbin/apache2ctl -D FOREGROUND) and another running worker (Laravel Horizon) (CMD php /var/www/artisan horizon) The issue is when I check the horizon dashboard, it says ‘Active’, and I can see the Jobs in the ‘Pending Jobs’ section, but they never actually execute.