docker - How to orchestrate multiple microservices on local env? -


at moment of speaking have bunch of services running each 1 on own container every repo of code has own docker file , docker compose file in order bring service on local dev-machine

everything fine , i'm able o access each service at

http://localhost:[service mapped/exposed port]

problem services augmenting , i'm thinking better idea have in local private network, each service 's container has own ip address.

is better approach orchestrate containers locally?

where should start make mind?

ideally describe entire setup in 1 or multiple docker compose files. see documentation details.

concerning networking , linking services: docker compose supports networking. can define networks , services in same network can access each other servicename , internal port (as application knows it). e.g : http://mysuperservice:3001

in case want multiple replicas of services or maybe multiple machines need orchestrators such docker swarm (easyest start with) or kubernetes or others.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -