Closed kapyaar closed 2 weeks ago
Which service is listening on port 80?
Can you share your Unit configuration?
Sorry, I should have added it in the first place.
{
"listeners": {
"*:80": {
"pass": "applications/php"
}
},
"applications": {
"php": {
"type": "php",
"root": "/var/www/html/",
"processes": 1,
"index":"index.php"
}
}
}
Compose
services:
php:
build:
context: .
dockerfile: Dockerfile
working_dir: /var/www/html/
container_name: phpApp
ports:
- 80:80
volumes:
- .:/var/www/html/
I have an nginx Unit+Php container with the following docker file
And If I run this, it works fine, index.php loads correctly. Now, I want to use supervisor to start a php script to run as daemon. This is a kafkaConsumer with a while loop. Below are the files
And a simple php script for testing.
However, If I add the following line to Dockerfile to start supervisor,
Then, the daemon php script does start, but the php server (http://localhost/) stops responding, with the following message
Any help much appreciated.