Replies: 2 comments 10 replies
|
That's really strange you're seeing that error because you're not exposing 9000 on your host. Our of curiosity, have you seen our project Spin? It might help with a lot of what you're trying to achieve. Instead of running NGINX → FPM-NGINX, we have a nice template to give you Traefik → FPM-NGINX on Alpine if it meets your project requirements. No pressure to change to Spin, but just wanted to share it so it's on your radar: https://serversideup.net/open-source/spin If you want to test something out, you could install Spin then run In regards to the port 9000 being used, my gut points to this: I wonder if this is an IPv6 thing? Are you running macOS Sequoia by any chance? |
|
Apologies for the delayed reply, this weekend is moving weekend for me! I have seen spin only briefly as a result of my research but I have not had the chance to take a deep look yet. I can try to give spin a shot and try the I did make some progress by switching the image to Yes, I am currently running macOS Sequoia 15.01 on a 2019 MacBook Pro. It's probably going to be something super obvious resulting in a glorious facepalm. 🤓🤦🏻♂️ |
Uh oh!
There was an error while loading. Please reload this page.
I'm new to Docker, so please forgive me if the answer is obvious. I'm running into an issue when running
docker compose up. Three of the four services appear to be running just fine, but the main serviceappwhich is the one that is runningphp-fpmkeeps crashing with the errorERROR: unable to bind listening socket for address '9000': Address in use.The most obvious answer is to check what is running on port 9000. As I'm running this locally on Mac for now, I ran
sudo lsof -i :9000and it returned no results. I then tried shelling into the container itself withdocker exec -it epp-core-app shbut was met with this error:Error response from daemon: Container {HASH REDACTED} is restarting, wait until the container is running.Because of this, I was unable check what else might have been using that port from within the container.I've included logs and my configuration files below for reference. I appreciate any guidance you may have
Logs
Dockerfile
docker-compose.yml
nginx.conf
server { listen 80; index index.php index.html; error_log /var/log/nginx/error.log; access_log /var/log/nginx/access.log; root /var/www/public; location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass app:9000; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; } location / { try_files $uri $uri/ /index.php?$query_string; gzip_static on; } }All reactions