3liz / py-qgis-server

QGIS embbeded WMS/WFS/WCS asynchronous scalable http server
https://docs.3liz.org/py-qgis-server
Mozilla Public License 2.0
68 stars 16 forks source link

Capabilities to change port #73

Closed lucadelu closed 7 months ago

lucadelu commented 9 months ago

It could be useful to have the capabilities to change the port of the server in Dockerfile, until now only 8080 seems to be possible to use.

In the case you like the idea I could try to work on it

dmarteau commented 9 months ago

What problem do you want to solve ?

It does not really matter what port is used in the container since you remap it to any port pour want when exposed.

lucadelu commented 9 months ago

You are about exposing it, but you you want to run multiple qgis-server in the same network it could be useful to be sure to use different instances of the server using different port, since inside the containers speak with the original port and not the exposed one

dmarteau commented 9 months ago

but you you want to run multiple qgis-server in the same network but you you want to run multiple qgis-server in the same network ...

Are you talking about docker network ?

If yes, you have to know that each container instance has its own DNS name, so there is no confict from the docker side, you only need to remap the host port of each instance.

If you scale a service with docker compose scale option or swarm , then you cannot map the port on the host side and your service name relsolve to multiple IP.

dmarteau commented 9 months ago

For a better understanding, can you provide a test case that illustrate the issue ? thanks.

github-actions[bot] commented 8 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 7 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.