Setting a custom IP doesn't work?

I use the docker compose version it seems like it comes with an nginx and it is already inside a VM but I am trying to run it with the same VM but one things goes out as ..1.3 (my other site) and the other as ..1.4 (discourse)