[Python] How to handle VM IP changes for Dockerized platform so clients always reach the...

Discussão em 'Python' iniciado por Stack, Julho 7, 2025.

  1. Stack

    Stack Membro Participativo

    I deployed my platform (frontend, backend, database) in Docker containers running on separate VMs. Clients access the platform using the VM IP, but if a VM's IP changes (e.g., due to DHCP), the platform becomes inaccessible.

    I don’t have a DNS or hostname setup—only the VM IP is used. How can I automatically detect the VM’s new IP and update clients accordingly, so they can access the platform without manual changes?

    What I need: Lightweight solutions to auto-update the IP for clients.

    Continue reading...

Compartilhe esta Página