Skip to content

API internal IP change at each restart/reboot. Any way to give a static ip? #25

Open
@catfluoride

Description

@catfluoride

Hi. I'm using api-docker exposing the service through Nginx as a reverse proxy (which is easier for me than using the in-built server, as my VPS hosts other servers as well).

Nonetheless, whenever I restart my server, the internal IP of api-docker changes: sometimes it is 172.18.0.3, others 172.18.0.2 and so on. This forces me to edit the nginx.conf file every time to make the service reachable from the outside.

My question is if is there a way to choose a permanent IP for api-docker.

Thanks a lot in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions