How to change the listen port? #405
Replies: 2 comments
-
ports:
- 9074:9000↑ If the Caddy container accesses the PHP-FPM container via the service name, try using port 9000 instead of 9074. Or if you want to use port 9074 in this case, you must use the host machine’s IP within the Docker network. |
Beta Was this translation helpful? Give feedback.
-
|
I need to run multiple versions of PHP for different websites being hosted in Caddy. In Docker, each of these PHP containers needs to have a different port. I have created both of the containers using specific ports ala 9074:9000, and I'm attempting to connect to them via Caddy using the servicename:port as below: Here's the error Caddy reports. Connection refused: So that's why I was curious if there's something additional to be done or a change to my current approach to get the container running PHP to accept the incoming connections on the ports I have set. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using docker compose and have my port set to
Caddy keeps getting refused access to the port using
I've also tried that didn't work
Is there something else I need to do? Is there an environment variable for the listen port?
Beta Was this translation helpful? Give feedback.
All reactions