Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
catfluoride opened this issue Mar 25, 2022 · 0 comments

Comments

@catfluoride
Copy link

catfluoride commented Mar 25, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant