Skip to content
This repository was archived by the owner on Oct 3, 2025. It is now read-only.
This repository was archived by the owner on Oct 3, 2025. It is now read-only.

How to change port number? #86

@mrmaglet

Description

@mrmaglet

I can't change the port.
I'm running featmap as docker compose on win11 with WLS2.

Ignoring the .env for now, I've updated the docker-compose.yml to

                ports:
                        - 6000:5000

I've used Gemini to trouble shoot. It suggest the go application is using IP6 inside the container.

// Gemini dialog 

CONTAINER_ID=$(sudo docker ps -aqf "name=featmap-featmap-1")
sudo docker exec -it $CONTAINER_ID sh -c "apk add net-tools >/dev/null 2>&1; netstat -tulnp"

Output: tcp6       0      0 :::5000                 :::*                    LISTEN      1/./featmap

This output will tell us definitively if the 0.0.0.0: change in main.go has taken effect, or if the featmap application is still only binding to IPv6 (:::5000). This is the key to understanding why your site is unreachable.

Not sure how to proceed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions