Repository navigation
Docker image - ignoring configuration #1042
|
I was experimenting with isso on my local machine using docker (rootless, but I believe this is irrelevant), but I was not able to change the configuration when invoking the container. StepsI was able to get a comment box to appear using the following:
However, I do not believe it was using the configuration I expect. For example, if I tried to use port to 8181 via:
The comment box doesn't appear (and I get CONNECTION RESET errors if i try to navigate to I can see that the isso process that was spawned (inside the container) is not watching port 8181 via netstat: If I try running isso manually within the container, then it does use the configuration I expect, e.g.: It is definitely listening to the port now, e.g. And the comment box is appearing. Am I doing something wrong when I invoke docker? I tried argument Also, if anyone has any hints about the WARNING that isso is giving me, that would be helpful <- I believe this is due to rootless docker, which might be tricky to overcome. |
Replies: 1 comment 4 replies
|
Looks like the port is hard-coded in the Dockerfile: https://github.com/isso-comments/isso/blob/9c24f9b3d9f259cff84b67e50875e6137b459ef7/Dockerfile Presumably the way to change the port is to build my own docker image (TBC). |
You shouldn't build a custom docker image just to change the port; instead do something like this in the config:
And in your docker command, map port 8181 on the host onto 8080 inside the container, like this:
-p 127.0.0.1:8181:8080. This should be enough to make isso accessible at http://127.0.0.1:8181. If you want a different URL then just make sure to also changepublic-endpointto match.