You declare the ip in your setup, or in the yaml file. An example for the docker-compose file is in the link below. I'd expect you'll want to declare the network and such as well, if you're not familiar.
https://gist.github.com/natcl/3d881d00a56c8a961e6dab8ba51a5a37